Forums

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

Home Forums CSS Highlighting a row in a table using CSS Reply To: Highlighting a row in a table using CSS

#180910
Paulie_D
Member

You’re’ already applying a class with odd/even however, that doesn’t seem to be applying but it is having an affect.

It looks like you have a class ‘highlighted’ applied which, again, doesn’t seem to exist as yet. I’m assuming that as this is only applied to your team this is the one you want to use.

So, you should do something like


tr.odd.highlighted,
tr.even.highlighted {
your styles here
}

This will cover you in the event that your team is odd or even in the table rows and if you ever decide to apply colors to those classes.