How to make Profile 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.
/**
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;
}
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(to top, #c471f5 0%, #fa71cd 100%);
}
.card{
display: flex;
flex-direction:column;
justify-content:space-between;
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:center;
border-radius: 10px;
height:150px;
background-image: linear-gradient(to top, #c471f5 0%, #fa71cd 100%);
}
.cardin1 img{
width: 110px;
height: 110px;
border-radius: 50%;
margin:80px 0px 0px 0px;
border: 6px solid #fff;
object-fit:contain;
}
.cardin2{
display: flex;
flex-direction:column;
align-items: center;
height:calc(400px - 150px);
padding: 50px 0px 0px 0px;
}
.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;
}
@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: #121212;
font-weight: 800;
}
.credit{
color: #121212;
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 Profile 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.
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.
Post a Comment
Thank you
Learning robo team