Hi, you guys. I've been messing around with using javascript to find elements based on CSS for a couple weeks now(to learn a little JS and CSS). You can see my progress here.Here's my question. Given the following HTML and CSS statement, what exactly is matched?
Code:div > *:nth-of-type(1)Will both tags be matched because they are both the first of their type, or will just the div match because the given tag is a wildcard? Hope you can help.Code:<div> <div>Test tag</div> <p>Test paragraph</p> </div>
PS: Just for reference - http://www.w3.org/TR/2001/CR-css3-se...of-type-pseudo



Reply With Quote

Bookmarks