The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › help with nth child
I added a span with a class to add an image after the navigation link. It works fine but now I need to remove the first one and leave the rest. I thought nth-child ? Does this work for the first one though?
Wouldn’t :first-child be more efficient?
i am targetting the first element. Not a child. would that work?
Can you show the code? Are you referring to something like:
span.blah:nth-child(1) {display: none;}
element:first-of-type { style properties }
https://developer.mozilla.org/en/CSS/:first-of-type