How to make Service 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: 'Poppins', sans-serif;
margin: 0%;
}
.container{
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.main{
width: 85vw;
height: 90vh;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
.section1{
width: 98%;
height: 48%;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.head1{
width: 28%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-evenly;
row-gap: 5px;
border-radius:10px;
}
.head1 p{
margin: 0%;
font-weight: bold;
font-size: 35px;
margin-left: 10px;
}
.head1 span{
font-size: 15px;
margin: 10px;
}
button{
padding: 10px;
width: 40%;
outline: none;
border: none;
background-color: #b39ddc;
margin-left: 10px;
font-size: 16px;
color: white;
}
.head2{
width: 28%;
height: 100%;
background-color: #fef8dd;
display: flex;
flex-direction: column;
justify-content: space-evenly;
row-gap: 5px;
border-radius:10px;
}
.head2 img{
width: 50px;
height: 50px;
margin: 10px;
}
ul li{
list-style: none;
margin-left: -15px;
}
.head3{
width: 28%;
height: 100%;
background-color: #caf1de;
display: flex;
flex-direction: column;
justify-content: space-evenly;
row-gap: 5px;
border-radius:10px;
}
.head3 img{
width: 50px;
height: 50px;
margin: 10px;
}
.section2{
width: 98%;
height: 48%;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.head4{
width: 28%;
height: 100%;
background-color: #ffe9ee;
display: flex;
flex-direction: column;
justify-content: space-evenly;
row-gap: 5px;
border-radius:10px;
}
.head4 img{
width: 50px;
height: 50px;
margin: 10px;
}
.head5{
width: 28%;
height: 100%;
background-color: #fef8dd;
display: flex;
flex-direction: column;
justify-content: space-evenly;
row-gap: 5px;
border-radius:10px;
}
.head5 img{
width: 50px;
height: 50px;
margin: 10px;
}
.head6{
width: 28%;
height: 100%;
background-color: #ffe9ee;
display: flex;
flex-direction: column;
justify-content: space-evenly;
row-gap: 5px;
border-radius:10px;
}
.head6 img{
width: 50px;
height: 50px;
margin: 10px;
}
p{
margin: 10px;
font-weight: bolder;
font-size: 20px;
letter-spacing: 1px;
}
ul li{
font-size: 15px;
font-weight: 600;
letter-spacing: 1px;
}
@media screen and (max-width:1024px){
.container{
height: fit-content;
}
.main{
padding:20px 0px;
width:100%;
height: fit-content;
}
.section1{
flex-direction: column;
align-items: center;
row-gap:20px;
margin:10px 0px;
width: 100%;
height:fit-content;
}
.section2{
flex-direction: column;
align-items: center;
row-gap:20px;
width: 100%;
margin:10px 0px;
height: fit-content;
}
.head1{
padding:10px;
width: 80%;
height:fit-content;
}
.head2{
padding:10px;
width: 80%;
height:fit-content;
}
.head3{
padding:10px;
width: 80%;
height:fit-content;
}
.head4{
padding:10px;
width: 80%;
height:fit-content;
}
.head5{
padding:10px;
width: 80%;
height:fit-content;
}
.head6{
padding:10px;
width: 80%;
height:fit-content;
}
}
@media screen and (max-width:630px){
.container{
height: fit-content;
}
.main{
width: 100%;
height: fit-content;
row-gap: 15px;
}
.section1{
width: 100%;
height: max-content;
flex-direction: column;
align-items: center;
row-gap: 15px;
}
.head1{
width: 80%;
height: 100%;
}
.head2{
width: 80%;
height: 100%;
}
.head3{
width: 80%;
height: 100%;
}
.section2{
width: 100%;
height: max-content;
flex-direction: column;
align-items: center;
row-gap: 15px;
}
.head4{
width: 80%;
height: 100%;
}
.head5{
width: 80%;
height: 100%;
}
.head6{
width: 80%;
height: 100%;
}
button{
margin: 15px auto;
}
}
.credit a{
text-decoration: none;
color: black;
font-weight: 800;
}
.credit{
color: black;
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 Service 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