Export (0) Print
Expand All

Child

Specifies a direct descendant relationship between selector elements.

E>F { sRules }

E

String that specifies the name of a document language element type or simple selector.

F

String that specifies the name of a document language element type or simple selector.

sRules

String that specifies one or more cascading style sheet property/value pairs.

A child combinator is a greater-than sign (>) that separates two simple selectors. White space is not significant. A selector of the form "E>F" matches when element F is a direct descendant of element E.

The following style rule matches only P elements that are immediate children of the BODY element:

<style>
    body>p {line-height: 1.3;}
</style>

Community Additions

ADD
Show:
© 2014 Microsoft