How to make Blog card design template 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=Allura&family=Roboto+Mono:wght@500&display=swap');
*{
box-sizing: border-box;
}
body{
font-family: Verdana,Geneva,Tahoma,sans-serif;
margin: 0px;
}
.container{
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
column-gap:10px;
flex-wrap: wrap;
background-color: #303841;
}
.p1{
width:calc(33.3% - 20px);
height:70vh;
background-color: #393e46;
border-radius: 10px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
.d1{
width:100%;
height:30vh;
border-radius: 10px;
}
.d1 img{
width:100%;
height:30vh;
object-fit:cover;
border-radius:10px;
}
.d2{
width:100%;
height:40vh;
padding:10px 30px;
display:flex;
flex-direction: column;
justify-content:center;
}
.d2 h5{
margin:10px;
color: #70a288;
}
.d2 h1{
margin:10px;
color: #f0a500;
}
.d2 p{
margin:10px;
color: #d9bf77;
}
.d2 h3{
margin:10px;
color: #eb4d55;
cursor: pointer;
display: inline;
}
.d2 h3:hover{
text-decoration: underline;
}
@media screen and (max-width:1024px){
.container{
height: fit-content;
row-gap:10px;
padding:10px 0px;
}
.p1{
width:calc(50% - 20px);
height:fit-content;
}
.d2{
height:fit-content;
}
}
@media screen and (max-width:630px){
.container{
height: fit-content;
flex-direction:column;
column-gap:0px;
row-gap:10px;
padding:10px 0px;
}
.p1{
width:95%;
height:fit-content;
}
.d2{
height:fit-content;
}
}
.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;
}
.credit span{
color:tomato;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a Blog card design template 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