Search within TutorialsPark

CSS Descendant Selector

Selects all Elements and their Descendents.

Definition and Notes.

1. To assign CSS styles to a whole group of Descendent Elements.

2. Inorder to create a descendent selector, the two selectors must be seperated by a space, ancestor first and followed by descendants.

3. Eg: #article p will apply CSS styles to element <p> which are descendants of an element with ID #article .


CSS Descendent selector. internetexplorer safari firefox opera chrome

View in Splitscreen»


Note:Above Example is of 2 level descendant, but you can have any number of descendant levels

Related Examples.