Home » descendant selectors css contextual selectors properties style sheets css2 selector property optimize declaration cascading style sheet css optimization

CSS: Use Descendant Selectors – contextual selectors

Descendant selectors are an elegant way to apply styles to specific areas of your page while reducing the need to embed classes within elements. First introduced in CSS1 in 1996, descendant selectors (then called contextual selectors) match elements that are descendants of other elements in the document tree. Composed of two or more selectors separated by whitespace, descendant selectors apply styles to elements that are contained within other elements.

Read more