How to make Blog 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(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}
.card{
display: flex;
flex-direction:column;
align-items:center;
border-radius: 10px;
width:300px;
height:450px;
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;
}
.cardin1{
padding:10px;
display: flex;
flex-direction:column;
border-radius: 10px;
width:100%;
height:290px;
}
.cardin1 img{
width: 100%;
height:200px;
border-radius: 5px;
object-fit:cover;
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
.cardin1 h2{
margin:10px 0px 0px 0px;
font-family: 'Play', sans-serif;
font-size: 29px;
}
.cardin1 h6{
margin:2px 0px 10px 0px;
font-size:10px;
}
.cardin2{
padding:10px;
display: flex;
flex-direction:column;
justify-content:end;
border-radius: 10px;
height:140px;
}
.cardin2 p{
margin:0px;
font-size:14px;
}
.cardin2 button{
margin:10px 0px;
border:none;
padding:10px 15px;
background-color:#ff9a9e;
border-radius:10px;
font-size:16px;
transition:.5s;
}
.cardin2 button:hover{
transform: scale(1.05);
cursor: pointer;
}
@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 Blog 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