User Profile card using HTML and CSS





























Hello Developers, we are proud to provide you with a dynamic and eye-catching User Profile card. This profile card snippet has been created with accuracy using HTML & CSS. A user profile card in HTML & CSS is one of the best ways to show information in a neat & tidy way. We are pleased to present you with our user profile card that has been beautifully crafted in HTML & CSS. The profile card snippet is a great first impression. You can add user's name, designation & profile picture. Then, add 2 buttons for following & sending message to the people who are interested. It is fully responsive which means that it can display information on desktops, laptop, tablet & smartphone. By using this HTML & CSS User profile card, you are not only sharing information but you are also showing your commitment to professionalism and modern web design. All in all, use this innovative & creative User profile card to show off & interact with the whole world. Note: We have coded CSS in separate file and linked it to the HTML file to create the User Profile card snippet.

How to make User Profile card using HTML and CSS.[Source Code]

To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <title>Profile Card UI design - learningrobo</title> <meta name="description" content="Profile Card UI design - learningrobo"> <meta name="author" content="learningrobo.com"> <meta name="keywords" content="profile card,Responsive,learningrobo.com,html & css projects"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type=image/x-icon href="#"> <link rel="stylesheet" href="style.css"> <meta charset="UTF-8"> <script src="https://kit.fontawesome.com/5d72166fb5.js" crossorigin="anonymous"></script> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="container"> <div class="box"> <img src="https://cdn.pixabay.com/photo/2019/10/22/13/43/man-4568761_1280.jpg" alt="man image"> <div class="con"> <h1>John Jeo</h1> <p>CEO at Company</p> <p>Multinational Company</p> </div> <div class="but"> <button class="follow"><i class="fa-solid fa-user-plus"></i>Follow</button> <button class="message"><i class="fa-solid fa-paper-plane"></i>Send Message</button> </div> </div> <div class="credit">Made with <span>❤ </span>by <a href="https://www.learningrobo.com/">learningrobo</a></div> </div> <!--Check our website Regularly For New Snippets Post--> </body> </html>
CSS provides style to an HTML page. To make the page attractive create a CSS file with the name style.css and remember that you have to make a file with a .css extension.


/** 
Hello Future Developer Thanks for Using learningrobo.com, 
Check our website Regularly For New Snippets Post.

Share & Support us
**/
*{
    box-sizing: border-box;
}
body{
    font-family: 'Josefin Sans', sans-serif;
    margin:0px;
}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height:100vh;
    width:100%;
    background-color: #fffd9d;
}
.box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    height: 450px;
    width: 450px;
    border-radius: 30px;
    position: relative;
    text-align: center;
}
.box img{
    height: 130px;
    width: 130px;
    border-radius: 25px;
    border:5px solid transparent;
    outline: 5px solid #fffd9d;
    object-fit: cover;
    object-position:top center;
}
.con h1{
    font-size: 40px;
}
.con p{
    font-size: 20px;
}
button{
    padding: 10px;
    width: 200px;
    border-radius: 30px;
    border: none;
}
button:hover{
    cursor: pointer;
}
.but i{
    font-size:20px;
    color:#121212;
    margin:0px 5px;
}
.follow{
    background-color: #90ffd4;
    font-size: 18px;
}
.message{
    background-color: #fffd9d;
    font-size: 18px;
}
@media screen and (max-width:630px){
    .box{
        padding:20px;
        width:300px;
        height:470px;
    }
    button{
        margin:10px 0px;
    }
}
.credit a{
    text-decoration: none;
    color: #121212;
    font-weight: 800;
}
.credit{
    color: #121212;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
    color:tomato;
    font-size:20px;
}     
We hope you would like this User Profile card using HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a User Profile card using HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.

Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome