Am I doing something wrong?
css/sass:
#section
article
border-top: 1px solid black
&:first-child
border: none !important
html/haml:
#section
%h2 title
%article
stuff here. There is still a top border here despite first-child style.
%article
stuff here.
%article
stuff here.
This doesn’t work, and there is still a border on the first <article>. I have to make another class and do something like article.noborder on the first article to get no border. Any help would be appreciated…css hates me.
You have to use
:first-of-typebecause of theh2preceding the firstarticle.