How to make Why choose us section 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: 'Nanum Gothic', sans-serif;
margin: 0%;
}
.container{
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.box{
width: 90vw;
height: 90vh;
display: flex;
flex-direction: row;
}
.circle{
width: 120px;
height: 120px;
border-radius: 50%;
background-color: hotpink;
display: flex;
justify-content: center;
align-items: center;
}
.root1{
width: 35%;
height: 90vh;
display: flex;
flex-direction: column;
text-align: center;
}
.sec1{
width: 100%;
height: 45vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
row-gap: 5px;
}
.sec1 h1{
margin: 0%;
letter-spacing: 2px;
color: #42b883;
font-size: 25px;
}
.sec1 p{
font-style: italic;
font-weight: 500;
margin: 10px;
}
.sec1 .circle{
background-color: #42b883;
}
.sec2{
width: 100%;
height: 45vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
row-gap: 5px;
}
.sec2 h1{
margin: 0%;
letter-spacing: 2px;
color: #347474;
font-size: 25px;
}
.sec2 p{
font-style: italic;
font-weight: 500;
margin: 10px;
}
.sec2 .circle{
background-color: #347474;
}
.root2{
width: 30%;
height:90vh;
display: flex;
justify-content: center;
align-items: center;
}
.root2 img{
width: 350px;
height: 350px;
border-radius: 50%;
object-fit: cover;
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
.root3{
width: 35%;
height: 90vh;
display: flex;
flex-direction: column;
text-align: center;
}
.sec3{
width: 100%;
height: 45vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
row-gap: 5px;
}
.sec3 h1{
margin: 0%;
letter-spacing: 2px;
color: #35495e;
font-size: 25px;
}
.sec3 p{
font-style: italic;
font-weight: 500;
margin: 10px;
}
.sec3 .circle{
background-color: #35495e;
}
.sec4{
width: 100%;
height: 45vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
row-gap: 5px;
}
.sec4 h1{
margin: 0%;
letter-spacing: 2px;
color: #ff7e67;
font-size: 25px;
}
.sec4 p{
font-style: italic;
font-weight: 500;
margin: 10px;
}
.sec4 .circle{
background-color: #ff7e67;
}
@media screen and (max-width:1024px){
.container{
height: fit-content;
}
.box{
flex-direction: column;
row-gap: 30px;
height: fit-content;
}
.root1{
width: 100%;
height: fit-content;
order: 2;
row-gap: 30px;
font-size: 20px;
}
.root2{
width: 100%;
height: fit-content;
order: 1;
}
.root3{
width: 100%;
height: fit-content;
order: 3;
row-gap: 30px;
font-size: 20px;
}
}
@media screen and (max-width:630px){
.container{
padding:20px 0px;
height: fit-content;
}
.box{
flex-direction: column;
row-gap: 30px;
height: fit-content;
}
.root1{
width: 100%;
height: fit-content;
order: 2;
row-gap: 30px;
font-size: 20px;
}
.root2{
width: 100%;
height: fit-content;
order: 1;
}
.root3{
width: 100%;
height: fit-content;
order: 3;
row-gap: 30px;
font-size: 20px;
}
}
.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;
}
Thank you for reading our blog. If you face any problem in Creating a Why choose us section 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