How to Create Social Media 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.
/**
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;
}
html{
height: 100%;
}
body {
font-family: Arial, sans-serif;
padding: 20px;
height: 100%;
background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}
.section1{
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card{
display: flex;
flex-direction:column;
justify-content: center;
border-radius: 10px;
width:400px;
height:400px;
background-color:#fff;
padding: 20px;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.cardin1{
padding:10px 0;
display: flex;
flex-direction:column;
align-items:left;
}
.cardin1 img{
width: 130px;
height: 130px;
border-radius: 50%;
margin:10px 0;
border: 3px solid #ff9a9e;
}
.cardin1 h2{
margin:2px 0;
font-family: 'Play', sans-serif;
font-size: 25px;
}
.cardin1 p{
margin:10px 0;
}
.cardin1 h6{
margin:2px 0;
font-size:12px;
}
.cardin2{
display: flex;
flex-direction:row;
padding: 10px 0;
}
.cardin2 i{
background-color: #fff;
margin: 2px 4px;
padding: 10px;
border-radius:30px;
color:#121212;
font-size:20px;
transition: .5s;
border:2px solid #ff9a9e;
box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}
.cardin2 i:hover{
transform: scale(1.1);
cursor: pointer;
}
@media only screen and (max-width: 630px) {
.card{
width:98%;
}
.cardin1{
align-items: center;
}
.cardin1 p{
text-align: justify;
}
.cardin2{
justify-content: center;
}
}
.credit a{
text-decoration: none;
color: #fff;
font-weight: 800;
}
.credit{
color: #fff;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
Thank you for reading our blog. If you face any problem in Creating a Social Media 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.
Explore
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.
In Our older post it doesnot work we working on that.
إرسال تعليق
Thank you
Learning robo team