Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

descendant

The descendant selector will target an element's descendants. That includes direct child elements as well as more deeply nested elements that are grandchildren and great grandchildren.
Syntax Logicelement descendant{ property_list }

CSS Code Example

<style> div li{ color:#F00; } </style> <div> <ul> <li>List Item</li> <li>List Item</li> <li>List Item</li> </ul> </div>

CSS

Selectors

universaltypecompoundclassidnotattributedescendantchildadjacent siblinggeneral siblingfirst childlast childonly childfirst of typelast of typeonly of typenth childnth last childnth of typenth last of typeemptyrootfirst linefirst letterbeforeafterlinkvisitedhoveractivefocustargetenableddisabledcheckedlang