Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

universal

The universal selector will target any element.
Syntax Logic* { property_list }

CSS Code Example

Target all elements in the document: <style> * { color:#F00; } </style> <h2>Heading content</h2> <p>Paragraph <b>content</b>...</p> Target all elements that are children of an element: <style> #div2 > * { color:#F0F; font-weight:bold; } </style> <div id="div1"> <p>Paragraph content...</p> <p>Paragraph content...</p> </div> <div id="div2"> <p>Paragraph content...</p> <p>Paragraph content...</p> </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