Friday, August 29, 2008

Child Selector

Using the > combinator between two selectors, you can target child elements only. Example: div > p
The above selector targets only those p elements that are children of div elements. Grand children, great grand children etc. won't be targetted.
Note: IE6 does not support child selectors (it ignores them)

No comments: