I have the following markup
<div>
<article>article 1</article>
<article>article 2</article>
<article>article 3</article>
<article>article 4</article>
<ul class="pagination">
<li>Page 1</li>
<li>Page 2</li>
</ul>
</div>
I tried to apply a lower bound to each article, but not to the last:
article:not(:last-child) {
border-bottom: 8px solid #404040;
}
But with that, I get the botton border on the last article.
If I remove UL, then the last article will not get the border.
This is strange because I only apply style to the article.
How can i solve this?
Thanks Miguel
source
share