Home › Forums › CSS › How to override css styles under a single class › Re: How to override css styles under a single class
October 10, 2011 at 10:54 am
#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’);