@@Der Martin
Wie könnte ich dann die erste Zelle der Tabelle ansprechen?
Du meinst sicher die erste Zeile? Voilà:
table tr:first-of-type
Vermutlich meint er den Tabellenkopf. Also thead bzw. thead tr bzw. thead th.
So, wie es bleumi85 auch umgesetzt hat.
table tr:first-of-type th:first-of-type, table tr:first-of-type td:first-of-typeZwei Angaben, um der sehr wahrscheinlichen Möglichkeit Rechnung zu tragen, dass die erste Zelle eine Kopfzelle (Zeilen- oder Spaltenkopf) ist.
Nein. Dass eine Zelle eine Kopfzelle (Zeilen- oder Spaltenkopf) ist, dem trägt die Auszeichnung als th Rechnung, nicht das Styling per :first-of-type oder :first-child.
LLAP 🖖
--
“The best way to help people learn: answer their coding question an hour later, they’ll have likely figured it out by then.” —Todd Motto
Selfcode:
“The best way to help people learn: answer their coding question an hour later, they’ll have likely figured it out by then.” —Todd Motto
Selfcode:
sh:) fo:} ch:? rl:) br:> n4:& va:| de:> zu:} fl:{ ss:| ls:# js:|