<section>
<div>
<h1>Get Pre-Approved Now</h1>
<ul>
<li>No Social Required</li>
<li>Instant Approval</li>
</ul>
<a href="#">Get pre-approved</a>
</div>
<img src="https://img.freepik.com/foto-gratis/jeep-lujo-negro-carretera_114579-4058.jpg?w=1380&t=st=1707260706~exp=1707261306~hmac=d767b93bf1f40716ea05fd2a3857ddd79d5b835558f4d542479fd9613a76b5ed" alt="">
</section>
body {
font-family: 'Hanken Grotesk', sans-serif;
}
section {
display: grid;
align-items: center;
gap: 1rem;
width: min(calc(100% - 1.5rem), 1370px);
margin-inline: auto;
position: relative;
}
@media screen and (min-width: 768px) {
section {
grid-template-columns: 1fr 1fr;
}
}
@media screen and (min-width: 1024px) {
section {
grid-template-columns: 1fr 4fr 6fr;
}
section div {
grid-column: 2 / 3;
}
section img {
grid-column: 3 / 4;
}
}
:focus-visible {
outline-offset: 2px;
outline: 2px solid black;
}
/* Makes the image gets contained in the box */
img {
display: block;
max-width: 100%;
max-height: 50vh;
}
a {
color: white;
background-color: black;
display: block;
width: max-content;
padding: 0.5em 1em;
font-size: 1.2rem;
text-decoration-color: transparent; /* Used over text-decoration: transparent to make the underline works on Windows High Contrast Mode */
text-transform: uppercase;
}
/* Makes the whole banner clickable */
a::before {
position: absolute;
content: "";
inset: 0;
}
h1 {
font-size: 3.3rem;
line-height: 1.2;
}
ul {
font-size: 1.3rem;
line-height: 1.5;
}
div > * + * {
margin-top: 3.5rem;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.