<section>
<h1>Nature</h1>
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Minus, laborum suscipit doloremque, expedita voluptatum maiores corporis modi assumenda esse consectetur error nulla, vero alias.</p><a href="">Learn more</a>
</div>
<div class="thumb">
<img src="https://images.unsplash.com/photo-1445966275305-9806327ea2b5?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=14a02fab1200216368d682ecaa91e540">
<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px;" href="https://unsplash.com/@andersjilden?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Anders Jildén"><span style="display:inline-block;padding:2px 3px;">
<svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white;" viewBox="0 0 32 32">
<title>unsplash-logo</title>
<path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path>
</svg></span><span style="display:inline-block;padding:2px 3px;">Anders Jildén</span></a>
</div>
</section>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
font-family: "Exo", Arial, sans-serif;
background-color: #557;
padding: 20px;
display: grid;
place-content: center;
gap: 20px;
}
section {
display: grid;
grid-template-rows: repeat(3, auto);
grid-template-columns: 4fr 4fr 5fr;
grid-template-areas:
". . title"
"thumb thumb content"
"thumb thumb .";
max-width: 50vw;
}
section::after {
content: "";
grid-column: 2/-1;
grid-row: 1/3;
z-index: -1;
background: #fff;
box-shadow: 0 0.2em 1em rgb(61 48 41 / 20%);
}
@media (max-width: 60em) {
section {
grid-template-columns: auto;
grid-template-rows: auto;
grid-template-areas:
"title"
"content"
"thumb";
}
section::after {
grid-column: 1 / 2;
grid-row: 1 / 4;
}
}
.thumb {
grid-area: thumb;
}
h1 {
grid-area: title;
font-size: 4em;
padding-top: 4rem;
padding: 4rem 2rem 1rem;
}
.content {
grid-area: content;
padding: 0 2rem 4rem;
}
img {
max-width: 100%;
vertical-align: middle;
box-shadow: 0 0.2em 1.2em rgb(61 48 41 / 10%);
margin-bottom: -2rem;
}
p {
margin-top: 0;
margin-bottom: 4rem;
line-height: 1.5;
}
.content a {
text-decoration: none;
border: 1px solid #b3b3b3;
border-radius: 1em;
padding: 1em 2em;
text-transform: uppercase;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.05em;
color: inherit;
display: inline-flex;
justify-content: center;
align-items: center;
background-color: #fff;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.