How to Create Profile Card in 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=Mukta:wght@300&family=Nunito+Sans:opsz,wght@6..12,300&display=swap');
:root{
--bg:#ffffff;
}
h1,h2,h3,h4,h5,h6{
margin:0;
}
body{
font-family: 'Mukta', sans-serif;
color:#632626;
background:linear-gradient(to bottom,#F8C4B4, #fa9090);
}
.container{
min-height:100vh;
max-height: auto;
display:flex;
justify-content:center;
flex-direction: column;
align-items:center;
}
.flex-container{
display:flex;
flex-direction:column;
align-items:center;
width:30vw;
height:70vh;
background-color: #ffffff;
border-radius: 5px;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.top-container{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
padding:5vh 5vw;
width:65%;
height:40vh;
background-color:var(--bg);
}
.bottom-container{
display:flex;
flex-direction:row;
justify-content:center;
align-items:center;
width:100%;
height:20vh;
background-color:var(--bg);
gap:.25vh;
}
.bottom-container-child{
display:flex;
justify-content: center;
align-items: center;
flex-direction: column;
width:100%;
height:20vh;
background-color:#FFDDD2;
}
.top-container img{
height:200px;
width:200px;
border-radius: 50%;
border:8px solid #FF8787;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
h1{
margin-top: 40px;
}
span{
margin-top:30px;
}
@media only screen and (max-width: 1024px){
.flex-container{
width:60vw;
height:80vh;
}
.top-container{
height:50vh;
}
}
@media only screen and (max-width: 630px){
.top-container img{
height:150px;
width:150px;
border:5px solid #FF8787;
}
.flex-container{
flex-direction: column;
width:90%;
height:100%;
}
.top-container{
width:100%;
border-radius: 5px 5px 0 0;
padding:1vh 1vw;
}
.bottom-container{
flex-direction: column;
width:100%;
height:40vh;
gap:.5vh;
padding:1vh 1vw;
border-radius: 0 0 5px 5px;
}
.bottom-container-child{
border-radius: 5px;
}
}
.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 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.
Post a Comment
Thank you
Learning robo team