Social Profile Card Design using HTML and CSS

























Hello Developers, Learning Robo provides a dynamic and eye-catching profile card snippet to display your details at a glance. This profile card snippet was precisely created using HTML and CSS. The profile card snippet makes a good first impression. It shows your name, designation and profile picture. Next, it shows your social media information. The bottom of the card has a contact button, where you can connect with people who are interested in your profile. The profile card is responsive, meaning it can be displayed on a variety of devices, including desktops, laptops, tablets and smartphones. By using this profile card snippet in HTML and CSS format, you’re not only sharing your information, but you’re also demonstrating your dedication to professionalism and contemporary web design. Impress the world with this creative and informative profile card and make a connection. Note: CSS is a piece of code that is stored in a separate file that is connected to the HTML file.

How to make Social Profile Card Design 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="flex-container"> <div class="top-container"> <img src="https://images.pexels.com/photos/4195342/pexels-photo-4195342.jpeg?auto=compress&cs=tinysrgb&w=1600"> </div> <div class="bottom-container"> <h1>John Carley</h1> <h3>Civil Engineer</h3> <div class="bottom-container-icon"> <i class="fa-brands fa-facebook"></i> <i class="fa-brands fa-instagram"></i> <i class="fa-brands fa-linkedin"></i> <i class="fa-brands fa-twitter"></i> </div> <button>Contact Me</button> <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> </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;
}
body{
    font-family: 'Mukta', sans-serif;
    background:linear-gradient(to bottom,#ffffffd2, #6e899e);
}
.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:300px;
    height:530px;
    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;
    width:calc(100% - 10px);
    height:225px;
    background-image: url("https://cdn.pixabay.com/photo/2017/02/02/22/08/tunnel-2033983_1280.jpg");
    background-size:cover;
    background-repeat:no-repeat;
    background-position: center center;
    border:5px solid #ffffff;
    border-radius:5px;
}  
.top-container img{
    height:110px;
    width:110px;
    border-radius: 50%;
    border:5px solid #f3f9ff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin:220px 0px 0px 0px;
    z-index: 1;
    object-fit:cover;
}
.bottom-container{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background-color:var(--bg);
    width:100%;
    height:calc(480px - 225px);
}
.bottom-container-icon i{
    font-size:20px;
    border-radius: 50%;
    padding:10px;
    margin:10px 2px 0 2px;
    text-align: center;
    transition:.5s;
}
.bottom-container-icon i:hover{
    cursor: pointer;
    background-color: #6e899e;
}
.bottom-container button{
    margin:10px;
    padding:10px;
    width:80%;
    border-radius:30px;
    border: 3px solid #6e899e;
    color:#111010;
    background:var(--bg);
    font-size:20px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    transition:.5s;
    font-weight: 900;
}
.bottom-container button:hover{
    cursor: pointer;
    background-color:#6e899e;
    border: 3px solid #151413c7;  
}
.bottom-container h1{
    margin:80px 0px 0px 0px;
}
.bottom-container h3{
    margin:0px;
}
@media only screen and (max-width: 1024px){
    .flex-container{
        width:300px;
        height:530px;
    }
}
@media only screen and (max-width: 630px){
    .flex-container{
        width:300px;
        height:530px;
    }
}
.credit a{
    text-decoration: none;
    color: #121212;
    font-weight: 800;
}
.credit{
    color: #121212;
    text-align: center;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
We hope you would like this Social Profile Card Design using HTML and CSS.

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