this post was submitted on 11 Aug 2023
480 points (96.9% liked)

Programmer Humor

31260 readers
754 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 28 points 11 months ago (1 children)
[–] [email protected] 34 points 11 months ago (2 children)

fun fact: !important !important is essentially !importanter, and you can go even further if you want a hell of a css hierarchy

[–] [email protected] 12 points 11 months ago (3 children)

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

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

[–] [email protected] 4 points 11 months ago (1 children)

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

[–] [email protected] 2 points 11 months 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!

[–] [email protected] 0 points 11 months ago

this and the parent comment have blown my mind.

[–] [email protected] 1 points 10 months ago

This... exists? This is horrible.