<div>
<h1>Blog Card</h1>
</div>
<section>
<h3>Natural beauty. which is grateful in Bangladesh.</h3>
<img src="https://images.pexels.com/photos/257840/pexels-photo-257840.jpeg?cs=srgb&dl=agriculture-apple-blur-257840.jpg&fm=jpg" alt="">
<p class="date">12th December, 2018</p>
<p>One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections.</p>
<a href="">Read More</a>
</section>
@import url('https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i');
@import url('https://fonts.googleapis.com/css?family=Josefin+Slab:100,100i,300,300i,400,400i,600,600i,700,700i');
:root{
--bg: #001D66;
--title: #00257F;
--para-text: rgba(0,0,0,0.67);
--title-font: 'Josefin Slab', serif;
--text-font: 'PT Serif', Serif;
--width: 20em;
}
body{
background: var(--bg);
display: grid;
place-items: center;
}
h1, h2, h3, h4, h5, h6{
color: var(--title);
text-transform: capitalize;
font-family: var(--title-font);
}
section,
aside,
article,
div,
img{
box-sizing: border-box;
}
section img{
width: 100%;
}
section{
width: var(--width);
background: #fff;
padding: 20px;
}
section h3{
font-size: calc(var(--width)/10);
}
section p{
font-family: var(--text-font);
color: var(--para-text);
font-size: calc(var(--width)/20);
}
.date{
font-size: calc(var(--width)/25);
}
h1{
color: #fff;
}
section a{
text-decoration: none;
color: var(--bg);
font-family: var(--title-font);
font-weight: 700;
font-size: calc(var(--width)/23);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.