494
Noooooo my div (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] odium@programming.dev 75 points 11 months ago

z-index: 999999 !important;

[-] maeries@feddit.de 44 points 11 months ago

!didistutter?;

[-] sbv@sh.itjust.works 29 points 11 months ago
[-] Xylight@lemmy.xylight.dev 36 points 11 months ago

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

[-] whatisallthis@lemm.ee 14 points 11 months 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 6 points 11 months ago

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

[-] MellowSnow@lemmy.world 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!

[-] havocpants@lemm.ee 1 points 11 months ago

this and the parent comment have blown my mind.

[-] lukas@lemmy.haigner.me 2 points 10 months ago

This... exists? This is horrible.

[-] AlecSadler@lemmy.ml 17 points 11 months 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.

[-] SnowdenHeroOfOurTime@unilem.org 8 points 11 months ago

I support this. Assert dominance.

[-] GombeenSysadmin@feddit.uk 2 points 10 months ago

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

[-] hellishharlot@programming.dev 3 points 10 months ago

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

this post was submitted on 11 Aug 2023
494 points (97.0% liked)

Programmer Humor

31259 readers
832 users here now

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

Rules:

founded 4 years ago
MODERATORS