How to make About Me 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=Yantramanav&display=swap');
*{
box-sizing: border-box;
}
body{
background-image:linear-gradient(0deg, #1DD2CD 0%, #E98462 100%);
font-family:'Mukta', sans-serif;
margin:0%;
}
.container{
height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
width:100%;
}
.subcontainer{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
border-radius:10px;
width:900px;
height:680px;
max-height:fit-content;
background-color:#e2e3e3;
padding:10px;
box-shadow:rgba(128,128,128,0.6) 0px 7px 19px 0px;
}
.top-subcontainer{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
width:80%;
height:150px;
}
.bottom-subcontainer{
display:flex;
flex-direction:row;
justify-content:space-between;
align-items:center;
padding:10px;
width:100%;
height:calc((700px - 150px) - 40px);
}
.left{
display:flex;
justify-content:center;
align-items:center;
width:50%;
height:fit-content;
}
.left img{
height:calc((700px - 150px) - 120px);
width:370px;
border:5px solid transparent;
outline:5px solid #E98462;
object-fit:cover;
object-position:60% 0%;
border-radius:10px;
}
.right{
display:flex;
flex-direction:column;
justify-content:left;
align-items:left;
width:50%;
height:fit-content;
}
.right table{
display:flex;
flex-direction:column;
justify-content:left;
align-items:left;
width:100%;
border-collapse:collapse;
}
.right table th{
padding:5px;
border:none;
text-align:left;
}
.right table td{
padding:5px;
border:none;
}
.right button{
width:130px;
margin-top:10px;
}
.right button{
background-color:#E98462;
border:2px solid #000;
color:#fff;
padding:12px 20px;
border-radius:5px;
}
.right button:hover{
cursor:pointer;
background-color:#d1dae0;
transition:.5s;
color:#000;
border:2px solid #E98462;
}
.right h2{
margin:0px;
}
span{
color:#E98462;
}
@media only screen and (max-width: 1024px){
.container{
height:fit-content;
}
.subcontainer{
margin:10px 0px 0px;
width:85%;
height:fit-content;
}
.top-subcontainer{
width:100%;
padding:20px;
height:fit-content;
}
.bottom-subcontainer{
display: flex;
flex-direction:column;
padding:0px;
height:fit-content;
}
.right{
width:100%;
height:fit-content;
padding:40px;
}
}
@media only screen and (max-width: 630px){
.container{
height:fit-content;
}
.subcontainer{
margin:20px 0px;
width:95%;
height:fit-content;
}
.top-subcontainer{
width:100%;
height:fit-content;
}
.bottom-subcontainer{
display:flex;
flex-direction:column;
height:fit-content;
}
.left img{
height:300px;
width:300px;
}
.right{
width:100%;
padding:20px;
}
}
.credit a{
text-decoration: none;
color: #000;
font-weight: 800;
}
.credit{
color: #000;
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 About Me 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.
إرسال تعليق
Thank you
Learning robo team