Name
Nachkommen-Selektor
Muster:
element1 element2
Beschreibung:
Dieser Selektor ermöglicht es, ein Element aufgrund seines Status als Nachkomme eines anderen Elements auszuwählen. Das entsprechende Element kann ein Kind-, Enkel-, Urenkel-, Ururenkel-Element usw. des Vorfahren-Elements sein. (CSS1 bezeichnete diesen Typ als »Kontext-Selektor«.)
Beispiele:
body h1 {font-size: 200%;} table tr td div ul li {color: purple;}
Get CSS kurz & gut, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.