i've got list of links which could be any length. i've styled them to have border-bottom but i want the first one to have border-top. how do i do this?
not as keen on psuedi selectors for the reason you suggested. had previsouly used something like a+a { } but as i don't know the amount it's a pain, so was hoping for something like a { this style }, a*x { this style }
first-child seems like the best option then but my concern is that what happens when i add something before the list of links in the future and forget i'm using it? say an image which now becomes the first child.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.