Gunnar Bittersmann: CSS Background color in Tabellenzeilen

Beitrag lesen

@@Jörg

Wie gesagt, ich würde nicht Klassen wie dido und we vergeben, sondern jedem Wochentag seine eigene Klasse spendieren und .di, .do und .sa, .so stylen.

Dann musst du bei späteren Änderungen (beispielsweise wenn du nicht Sonnabend und Sonntag, sondern nur Sonntag hervorheben willst) nicht noch mal die Logik anfassen, sondern nur noch das Stylesheet.

😷 LLAP

--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon