How to make Versatile 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
**/
*{
box-sizing: border-box;
}
body{
font-family: 'Josefin Sans', sans-serif;
}
.box{
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
}
.p1{
width: 100vw;
height: 25vh;
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
}
.p1 h1{
margin-top: 20px;
font-size: 40px;
font-weight: 900;
letter-spacing: 1px;
}
.p1 p{
margin: 0%;
font-size: 20px;
font-weight: 700;
letter-spacing: 1px;
}
.p2{
width: 100vw;
height: 75vh;
display: flex;
flex-direction: row;
}
.c1{
width: 35vw;
height: 75vh;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
.c1 h4{
font-size: 35px;
margin: 40px 60px;
}
.c1 p{
font-size: 19px;
font-weight: bold;
margin: 10px 50px 0px 60px;
line-height: 2;
}
.c2{
width: 30vw;
height: 75vh;
display: flex;
justify-content: center;
align-items: center;
}
.c2 img{
width: 260px;
height: 240px;
border-radius: 50%;
border: 1px solid gray;
}
.c3{
width: 35vw;
height: 75vh;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
.c3 h4{
font-size: 35px;
margin: 40px 40px;
}
.c3 h5{
font-size: 18px;
font-weight: 700;
margin: 10px 0px 0px 40px;
}
.c3 h6{
font-size: 20px;
font-weight: 500;
margin: 10px 50px 0px 40px;
}
.icon{
display: flex;
flex-direction: row;
margin: 10px 50px 0px 40px;
column-gap: 25px;
}
.credit a {
text-decoration: none;
color: #000000;
font-weight: 800;
}
.credit{
color: #000000;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:tomato;
font-size:20px;
}
@media (max-width:800px) {
.box{
width: 100vw;
text-align: center;
}
.p1{
width: 100vw;
height: 25vh;
}
.p2{
flex-direction: column;
row-gap: 30px;
}
.c1{
width: 100vw;
height: 75vh;
flex-direction: column;
justify-content: center;
align-items: center;
order: 2;
}
.c2{
width: 100vw;
height: 75vh;
order: 1;
}
.c2 img{
width: 310px;
height: 300px;
}
.c3{
width: 100vw;
height: 75vh;
justify-content: center;
order: 3;
}
.icon{
margin-bottom: 30px;
}
.credit{
margin-top: 130vh;
}
}
Thank you for reading our blog. If you face any problem in Creating a Versatile 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