Jump to content

nth-child


Stooney

Recommended Posts

I'm having issues figuring this out.  Getting an error with the following:

 

I have this: (table2 is a class)

table.table2 tr:nth-child(odd){
background-color: #EEE;
}

 

Giving me this error:

Warning: Function token for non-function pseudo-class or pseudo-element, or the other way around, when reading 'nth-child'.  Ruleset ignored due to bad selector.
Source File: http://localhost/lcpaintball/style.css
Line: 124

Link to comment
https://forums.phpfreaks.com/topic/100585-nth-child/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.