I'm trying to top-border all sections but first within an article. But I can only border all sections. How can I achieve that?
My Code is this:
article.result > section.content{
border-top:1px solid red;
}
article.result > section.content:first-of-type{
border-top:none;
}
<article class='result'>
<section class="traits">
<div class="d-inline-flex justify-content-start align-items-center">
<h3 class='d-flex'>FIGHTER</h3><h3 class='d-flex'>FLOURISH</h3>
</div>
</section>
<section class='content'><p>bla-bla-bla</p></section>
<section class='content'><p>bla2-bla2-bla2</p></section>
</article>
This code gives me all sections with border on the top, and I wanted all bordered but the first.
EDITED!!
I've added one line of code that had my original web that made css not work at all. I think that the fact there is another section (section.traits before the section.content makes it work wrong. How can I fixed it?