Блок с заголовком и тэгом
span
встают в header а не на
img
<section class="top">
<div class="wrapper-full">
<h2 class="top-title section-title">
Today top places to visit
</h2>
<div class="top-cards">
<div class="top-card">
<div class="top-card-pic">
<img src="img/top/top-1.jpg" alt="NAGOYA" class="top-card-thumb">
</div>
<div class="top-card-stats">
<h3 class="top-card-title">NAGOYA</h3>
<div class="top-card-likes">
<span class="top-card-likes-value">
221
</span>
</div>
<div class="top-card-comments">
<span class="top-card-comments-value">
50
</span>
</div>
</div>
</div>
</div>
</div>
</section>
.top {
margin-bottom: 86px;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 57px;
}
.top-title {
margin-bottom: 54px;
}
.top-card-pic {
position: relative;
}
.top-card-title {
font-weight: 500;
font-size: 18px;
line-height: 24px;
}
.top-card-stats {
position: absolute;
width: 100%;
bottom: 0;
left: 0;
background: rgba(21, 24, 36, 0.6);
}
Ссылка на макет:
https://www.figma.com/file/yzOjR8isDvphCIHnOUOsDn/...
Блок с "Today top places to visit"