Stooney Posted April 11, 2008 Share Posted April 11, 2008 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 More sharing options...
haku Posted April 11, 2008 Share Posted April 11, 2008 Looks like part of a javascript library. The error probably means that you don't have your document linked to that library. Link to comment https://forums.phpfreaks.com/topic/100585-nth-child/#findComment-514459 Share on other sites More sharing options...
Stooney Posted April 11, 2008 Author Share Posted April 11, 2008 Ah, I was assuming it was built into css3 somehow. (That's what I read). Link to comment https://forums.phpfreaks.com/topic/100585-nth-child/#findComment-514462 Share on other sites More sharing options...
bronzemonkey Posted April 14, 2008 Share Posted April 14, 2008 It is part of the css3 spec...but no browser supports it yet. They are still in css2.1-land. Link to comment https://forums.phpfreaks.com/topic/100585-nth-child/#findComment-516912 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.