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

Programmer Humor

32426 readers
633 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (4 children)

z-index: 999999 !important;

[–] [email protected] 4 points 1 year ago

!didistutter?;

[–] [email protected] 2 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year 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] 2 points 1 year ago

This... exists? This is horrible.

[–] [email protected] 2 points 1 year ago (1 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] 2 points 1 year ago

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

[–] [email protected] 1 points 1 year ago

I actually encountered an issue earlier today where my important wasn't working...and it was because another dev had already added a more specific important.

I deleted their important.

[–] [email protected] 0 points 1 year ago (1 children)

When I read that, I can never not say “not important” in my head

[–] [email protected] 3 points 1 year ago

Yeah I think that makes CSS a manager. It's always prioritizing not important things

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

the z index is so high that the div escaped your monitor and is behind your head now