Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to override css styles under a single class Re: How to override css styles under a single class

#88796
Johnnyb
Member

@ChristopherBurton, although your HTML is more appropriate for what they’re trying to do, they noted in their post that they weren’t able to change any of the HTML unfortunately.

As that’s the case then using :first-child is probably the best way. Or if you want really deep browser support you could throw in some jquery: $(“.details ul li:nth-child(1)”).css(‘color’, ‘orange’);