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(-20deg, #ddd6f3 0%, #faaca8 100%, #faaca8 100%);
}
.card{
display: flex;
flex-direction:column;
justify-content:space-between;
border-radius: 10px;
width:400px;
height:400px;
background-color:#fff;
padding:20px;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.cardin1{
padding:10px 0;
display: flex;
flex-direction:column;
align-items:end;
border-radius: 10px;
height:300px;
background-image: url(https://cdn.pixabay.com/photo/2014/08/21/07/55/running-shoe-423164_1280.jpg);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
.cardin1 button{
border: none;
border-radius: 50%;
padding:10px;
margin:0px 10px;
font-size:16px;
}
.cardin1 button:hover{
cursor: pointer;
color:#121212;
background-color: #faaca8;
}
.cardin2{
display: flex;
flex-direction:column;
align-items:start;
justify-content: center;
height:calc(400px - 300px);
padding:20px 0px;
}
.cardin2 h2{
margin:2px 0px;
font-family: 'Play', sans-serif;
font-size: 20px;
font-weight: 300;
}
.cardin2 h5{
margin:2px 0px;
font-size:28px;
font-weight: 300;
}
@media only screen and (max-width: 630px){
.card{
width:98%;
}
}
.credit a{
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit{
color: #121212;
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