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

#88792
rjc
Member

Depending on what browser levels you want to support:

ul.details li:first-child { color:red; }
ul.details li:last-child { color:blue; }

or more widely:


ul.details li h3 { color: red; }
ul.details li p { color: blue: }

The html you have really needs more structure, the “When” really should be some kind of label to the time and date rather than a list item in itself.