Social Media Card using HTML and CSS













Hello Developers, Learning Robo offers a dynamic and visually appealing contact form snippet that shows your data at a glance. This contact form snippet was created precisely with HTML and CSS. The profile card snippet displays your name, title and profile picture at the top of the card, creating a strong first impression. This is followed by the social media information. Further down the card, there is space for followers and share buttons so that users can easily get in touch with each other. The profile card is also fully responsive, meaning it can be displayed on desktop, laptop, tablet and mobile devices. All of this information is presented in an organised and aesthetically pleasing way. With this HTML and CSS-supported profile card snippet, you not only pass on information, but also set an example of your commitment to professionalism and modern web design. This profile card snippet is a fun and informative way to impress, engage and share with the world. Note: The CSS is stored in a separate file that is connected to the HTML file.

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"> <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="section1"> <div class="card"> <div class="cardin1"> <img src="https://cdn.pixabay.com/photo/2015/08/14/15/28/smiling-888532_1280.jpg" alt="Profile Image"> </div> <div class="cardin2"> <h2>Jack Horn stanly</h2> <h6>Web developer</h6> <div class="info"> <div> <h5>60</h5> <p>Posts</p> </div> <div> <h5>34K</h5> <p>Folowers</p> </div> <div> <h5>20</h5> <p>Following</p> </div> </div> <div class="button"> <button>Follow me</button> <button>Share now</button> </div> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤ </span>by <a href="https://www.w3pupil.com/">W3pupil</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=Play&display=swap');
*{
    box-sizing: border-box;
}
:root{
    --bg:#121212;
    --fontcolor:#eee;
}
body{
    font-family: Arial, sans-serif;
    margin:0%;
}
.section1{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    background-image: linear-gradient(60deg, #abecd6 0%, #fbed96 100%);
}
.card{
    display: flex;
    flex-direction:row;
    justify-content:space-between;
    border-radius: 10px;
    width:600px;
    height:300px;
    background-color:var(--bg);
    padding:20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.cardin1{
    display: flex;
    flex-direction:column;
    align-items:center;
    border-radius:10px;
    height:260px;
    width:250px;
}
.cardin1 img{
    width:100%;
    height:260px;
    border-radius:5px;
    margin:0px;
    object-fit:cover;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.cardin2{
    display: flex;
    flex-direction:column;
    align-items: center;
    height:260px;
    padding:30px; 
    width:350px;
    color:var(--fontcolor)
}
.cardin2 h2{
    margin:0px;
    font-family: 'Play', sans-serif;
    font-size: 25px;
}
.cardin2 h6{
    margin:0px;
    font-size:12px;
}
.cardin2 h5{
    margin:0px;
    font-size:18px;
    font-weight: 300;
}
.cardin2 p{
    margin:0px;
    font-size:16px;
    font-weight:100;
}
.cardin2 .info{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width:360px;
    height:60px;
    column-gap:40px;
    margin:10px 0px;
}
.cardin2 .button{
    display: flex;
    column-gap:10px;
}
.cardin2 .button button{
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    transition: .5s;
}
.cardin2 .button button:nth-child(1){
    border:2px solid #121212;
    background-image: linear-gradient(60deg, #abecd6 0%, #fbed96 100%);
    color:#121212;
}
.cardin2 .button button:nth-child(2){
    border:2px solid #fbed96;
    background-color:#121212;
    color: #fbed96;
}
.cardin2 button:hover{
    transform: scale(1.05);
    cursor: pointer;
}
@media only screen and (max-width: 630px){
    .card{
        flex-direction: column;
        width:98%;
        height:fit-content;
    }
    .cardin1{
        align-items: center;
        height:fit-content;
        width:100%;
    }
    .cardin2{
        width:100%;
        justify-content: center;
    }
}
.credit a{
    text-decoration: none;
    color: #eee;
    font-weight: 800;
}
.credit{
    color: #eee;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
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

إرسال تعليق

Thank you
Learning robo team

Post a Comment (0)

أحدث أقدم
Learning Robo says...
code copied
Welcome