509
Noooooo my div (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] whatisallthis@lemm.ee 14 points 1 year ago

You can also just write your class again as some sort of additional specificity like

.myclass.myclass.myclass { color:red !important !important; }

[-] FUsername@feddit.de 8 points 1 year ago

The fact that this and the prior comments work don't make like CSS more tbh

[-] MellowSnow@lemmy.world 2 points 1 year ago

Like most things in the world of dev, there are right and wrong ways to do things. Just because you can doesn't mean you should! CSS can be quite nice when used correctly!

[-] havocpants@lemm.ee 2 points 1 year ago

this and the parent comment have blown my mind.

this post was submitted on 11 Aug 2023
509 points (100.0% liked)

Programmer Humor

32065 readers
399 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS