How to Create Profile Card in HTML & CSS









Hello Developers, Learning Robo offers a dynamic and visually appealing profile card snippet that shows your information at a glance. This profile card snippet has been carefully crafted using HTML and CSS. Your name, description and profile picture are displayed at the top of the left-hand container, creating a strong first impression. Further down there is space for your details such as name, age, mobile number, email and address so that anyone can easily find out about you. In the right-hand container you'll find a short description and social media details. Further down are two buttons for "Contact Us" and "Share Now" so that anyone interested can easily reach you. Finally, this profile card snippet is fully responsive, which ensures a seamless display on different devices. Whether on a desktop, laptop, tablet or smartphone, your information will always be displayed in a clear and visually appealing way. With this HTML and CSS-powered profile card snippet, you're not just sharing information, – you're also demonstrating your commitment to professionalism and modern web design. This profile card snippet is designed to captivate, inspire and share with the world. Remark: CSS is a type of markup that is written to a separate file that is then associated with your HTML file. If you want to change the blur, you can do so in the CSS file -->.left-container & .right-container --> backdrop-filter: blur();

How to Create Profile Card in 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="flexbox,Profile card,profile page,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"> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="container"> <div class="flex-container"> <div class="top-container"> <img src="https://images.pexels.com/photos/1065084/pexels-photo-1065084.jpeg?auto=compress&cs=tinysrgb&w=1600"> <h1>MEGNA JACOB</h1> <h3>Designer</h3> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤ </span>by <a href="https://www.learningrobo.com/">learningrobo</a></div> </div> <div class="bottom-container"> <div class="bottom-container-child"> <h2><b>1898</b></h2> <h3>Followers</h3> </div> <div class="bottom-container-child"> <h2><b>768</b></h2> <h3>Following</h3> </div> </div> </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
**/
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300&family=Nunito+Sans:opsz,wght@6..12,300&display=swap');
:root{
    --bg:#ffffff;
}
h1,h2,h3,h4,h5,h6{
    margin:0;
}
body{
    font-family: 'Mukta', sans-serif;
    color:#632626;
    background:linear-gradient(to bottom,#F8C4B4, #fa9090);
}
.container{
    min-height:100vh;
    max-height: auto;
    display:flex;
    justify-content:center;
    flex-direction: column;
    align-items:center;
}
.flex-container{
    display:flex;
    flex-direction:column;
    align-items:center; 
    width:30vw;
    height:70vh;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.top-container{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:5vh 5vw;
    width:65%;
    height:40vh;
    background-color:var(--bg);
}  
.bottom-container{
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    width:100%;
    height:20vh;
    background-color:var(--bg);
    gap:.25vh;
}
.bottom-container-child{
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width:100%;
    height:20vh;
    background-color:#FFDDD2;
}
.top-container img{
    height:200px;
    width:200px;
    border-radius: 50%;
    border:8px solid #FF8787;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
h1{
    margin-top: 40px;
}
span{
    margin-top:30px;
}
@media only screen and (max-width: 1024px){
    .flex-container{
        width:60vw;
        height:80vh;
    }
    .top-container{
        height:50vh;
    }
}
@media only screen and (max-width: 630px){
    .top-container img{
        height:150px;
        width:150px;
        border:5px solid #FF8787;
    }
    .flex-container{
        flex-direction: column;
        width:90%;
        height:100%;
    }
    .top-container{
        width:100%;
        border-radius: 5px 5px 0 0;
        padding:1vh 1vw;
    }
    .bottom-container{
        flex-direction: column;
        width:100%;
        height:40vh;
        gap:.5vh;
        padding:1vh 1vw;
        border-radius: 0 0 5px 5px;
    }
    .bottom-container-child{
        border-radius: 5px;
    }
}
.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;
}   
We hope you would like this Profile Card Design using HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a Profile Card Design 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