How to make User 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
**/
*{
box-sizing: border-box;
}
body{
font-family: 'Josefin Sans', sans-serif;
margin:0px;
}
.container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height:100vh;
width:100%;
background-color: #fffd9d;
}
.box{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: white;
height: 450px;
width: 450px;
border-radius: 30px;
position: relative;
text-align: center;
}
.box img{
height: 130px;
width: 130px;
border-radius: 25px;
border:5px solid transparent;
outline: 5px solid #fffd9d;
object-fit: cover;
object-position:top center;
}
.con h1{
font-size: 40px;
}
.con p{
font-size: 20px;
}
button{
padding: 10px;
width: 200px;
border-radius: 30px;
border: none;
}
button:hover{
cursor: pointer;
}
.but i{
font-size:20px;
color:#121212;
margin:0px 5px;
}
.follow{
background-color: #90ffd4;
font-size: 18px;
}
.message{
background-color: #fffd9d;
font-size: 18px;
}
@media screen and (max-width:630px){
.box{
padding:20px;
width:300px;
height:470px;
}
button{
margin:10px 0px;
}
}
.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;
}
.credit span{
color:tomato;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a User 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