Social media card using html and css





























Hello Developers, We are proud to provide you with a dynamic and attractive Social media card that shows your information to the world at a glance. This Social media card snippet has been designed with precision using HTML & CSS. Social media cards in HTML & CSS are a great way to show information in an organized & attractive way. We are proud to present you with our Social media card, which has been beautifully designed in HTML & CSS. You can add user's name, designation, & profile picture on top of the card to create a strong impression. In the card, you can add small description about you with the count of following & followers. Then, add a follow button so that the interested people can get connected with you. The card is fully responsive so that it can display information on desktops, laptop, tablets & smartphones. So, by using this HTML & CSS Social media card snippet, you are not only sharing information but also showing your dedication to professionalism & contemporary web design. Show off & interact with the world using this innovative & creative Social media card snippet. Note: We have saved the CSS in a different file and linked it to the HTML file to make a Social media card snippet.

How to make Social media 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,project"> <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> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Signika:wght@300&display=swap" rel="stylesheet"> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="container"> <div class="box"> <div class="head1"> <h1>Unity + Nation</h1> </div> <span class="profile"><i class="fa-solid fa-user fa-2xl" style="color: #ffffff;"></i></span> <div class="head2"> <div class="user"> <div class="name"> <h3>Joe Biden Roy</h3> <p>@joebiden</p> </div> <div class="follow"> <button type="submit">Follow</button> </div> </div> <div class="desc"> <p>A member of the Democratic Party, he previously served as the 47th vice president from 2009 to 2017.</p> </div> <div class="count"> <p><span>238</span> Following</p> <p><span>98</span> Followers</p> </div> <div class="link"> <p><i class="fa-solid fa-link" style="color: #2387fa;"></i><a href="https://joebidenusa.com">joebidenusa.com</a></p> <p><i class="fa-sharp fa-solid fa-location-dot" style="color: #000000;"></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;India</p> </div> </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: 'Signika', sans-serif;
    margin: 0%;
}
.container{
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
}
.box{
    width: 450px;
    height: 480px;
    background-color: white;
    border-radius: 25px;
    margin: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.head1{
    width: 95%;
    height: 140px;
    background-color: #353942;
    border-radius: 30px;
    margin-top: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.head1 h1{
    margin: 0%;
    background: #CFE7fA;
    background: linear-gradient(to right, #CFE7fA 0%, #6393C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    font-size: 30px;
}
.profile{
    width: 120px;
    height: 120px;
    background-color: #353942;
    border-radius: 50%;
    margin: -60px 0px 0px -260px;
    border: 6px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
}
.head2{
    width: 85%;
    height: 260px;
    display: flex;
    flex-direction: column;
}
.user{
    width: auto;
    height: 80px;
    display: flex;
    flex-direction: row;
}
.name{
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 5px;
}
.name h3{
    margin: 0%;
    font-size: 20px;
    letter-spacing: 1px;
}
.name p{
    margin: 0%;
    color: #353942;
}
.follow{
    width: 30%;
    display: flex;
    align-items: center;
}
.follow button{
    padding: 9px;
    width: 100px;
    border-radius: 20px;
    outline: none;
    border: none;
    background-color: #2387fa;
    color: white;
    font-size: 18px;
    letter-spacing: 1px;
}
.desc{
    width: auto;
    height: 80px;
    display: flex;
    align-items: center;
}
.desc p{
    margin: 0%;
    font-size: 18px;
    color: #353942;
    font-weight: 500;
}
.count{
    width: auto;
    height: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 40px;
}
.count span{
    font-size: 20px;
    font-weight: bold;
    color: black;
}
.count p{
    margin: 0%;
    font-size: 18px;
    color: #52565f;
    font-weight: bold;
}
.link{
    width: auto;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 5px;
}
.link a{
    text-decoration: none;
    color: #2387fa;
    font-weight: bold;
    margin-left: 10px;
}
.link p{
    margin: 0%;
    font-size: 18px;
    color: #353942;
}
@media screen and (max-width:630px){
    .box{
        width:98%;
        height:fit-content
    }
    .profile{
        width: 100px;
        height: 100px;
        margin: -50px 0px 0px 0px;
    }
}
.credit a{
    text-decoration: none;
    color: black;
    font-weight: 800;
}
.credit{
    color: black;
    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 Social media card using html and css.

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