How to make Product 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(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
}
.card{
display: flex;
flex-direction:column;
align-items:center;
border-radius: 10px;
width:300px;
height:450px;
background-color:#262626;
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;
}
.cardin1{
padding:10px;
display: flex;
flex-direction:column;
align-items: center;
border-radius: 10px;
width:100%;
height:210px;
}
.cardin1 img{
width: 200px;
height:200px;
border-radius: 5px;
object-fit:cover;
filter: drop-shadow(0px 0px 15px #000000);
animation-name: spin;
animation-duration: 15000ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes spin{
from{
transform: rotate(0deg);
}
to{
transform: rotate(360deg);
}
}
.cardin2 h2{
margin:10px 0px 0px 0px;
font-family: 'Play', sans-serif;
font-size: 29px;
}
.cardin2 h6{
margin:2px 0px 10px 0px;
font-size:10px;
}
.cardin2{
padding:10px;
display: flex;
flex-direction:column;
justify-content:end;
border-radius: 10px;
height:220px;
}
.cardin2 p{
margin:0px;
font-size:14px;
}
.cardin2 button{
margin:10px 0px;
border:none;
padding:15px 15px;
background-color:#2a5298;
border-radius:10px;
font-size:16px;
transition:.5s;
color: #ddd;
}
.cardin2 button:hover{
transform: scale(1.05);
cursor: pointer;
color:#fff;
}
@media only screen and (max-width: 630px){
.card{
width:90%;
}
}
.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 Product 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.
Post a Comment
Thank you
Learning robo team