W3C Validator & :nth-child() Selector
I am using Pluprint's typography.css and this gives me an error message. Bacause there is jQuery's nth-child selector.
Please someone help me ...
That pseudo class :nth-child() is a CSS selector. It has nothing to do with JQuery.The selector has the syntax
Where a and b should be integers
That means it accepts only a formula as argument.
Or your code looks like:
Which, obviously, is an error. If you want an evenly match (a zebra), probably it should be:
tbody tr:nth-child(even) td
tbody tr:nth-child(2n+1) td
Last edited by Kor; 01-11-2011 at 03:30 AM.
Thanks for respond. I have edited, but still error message
Post the code. Or the link. Or the validator's link.
Originally Posted by insanoff
nth-child is a CSS 3 feature. You'll need to expand the validator's options and change the profile to CSS level 3.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread