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 Quote 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. Quote 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). Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/100585-nth-child/#findComment-516912 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.