How to make Services Selection 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=Play&display=swap');
*{
box-sizing: border-box;
}
body{
font-family: Arial, sans-serif;
margin:0%;
}
.section1{
height: 100vh;
display: flex;
flex-direction: column;
justify-content:center;
align-items: center;
background-image: linear-gradient(-225deg, #5271C4 0%, #B19FFF 48%, #ECA1FE 100%);
}
.container{
display: flex;
flex-direction:row;
align-items: center;
justify-content:center;
width:1000px;
column-gap:10px;
height: fit-content;
}
.card{
text-align: center;
z-index:0;
display: flex;
flex-direction:column;
align-items: center;
justify-content:center;
border-radius: 10px;
width:calc((1000px / 3) - 30px);
height:300px;
background-color:#fff;
padding:10px;
box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
transition:1s;
}
.card:nth-child(2){
height:350px;
margin:0px -20px;
z-index:1;
}
.cardin1{
padding:10px 10px;
display: flex;
flex-direction:column;
justify-content:center;
align-items: center;
height:300px;
}
.cardin1 img{
width: 150px;
height: 150px;
margin:0px;
object-fit:contain;
}
.cardin1 h2{
margin:10px 0px;
font-family: 'Play', sans-serif;
font-size: 25px;
}
.cardin1 h6{
margin:0px 0px 20px 0px;
font-size:10px;
}
@media only screen and (max-width: 1024px){
.container{
width:98%;
flex-direction:row;
flex-wrap: wrap;
}
.card{
width:calc((98% / 3) - 5px);
margin:10px 0px;
}
.card:nth-child(2){
height:300px;
margin:0px;
z-index:0;
}
}
@media only screen and (max-width: 630px){
.section1{
height: fit-content;
}
.container{
width:96%;
flex-direction:column;
}
.card{
width:100%;
margin:10px 0px;
}
.card:nth-child(2){
height:300px;
margin:0px;
z-index:0;
}
}
.credit a{
text-decoration: none;
color: #fff;
font-weight: 800;
}
.credit{
color: #fff;
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 Services Selection 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