How do I use display:grid
so it only targets .entry
or .post
elements and excludes the archive title and pagination?
(archive-description
and the pagination
to span the full width of the content div)
.content {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 20px;
}
<main class="content">
<div class="archive-description">Archive Title</div>
<article class="post entry">This is a post</article>
<article class="post entry">This is a post</article>
<article class="post entry">This is a post</article>
<li class="pagination">Previous & Next Entry</li>
</main>
archive-description
and thepagination
to span the grid columns?