Spyke

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

35
lemm.ee

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

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

13
FUsernamereply
feddit.de

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

6

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!

2
AlecSadlerreply
lemmy.ml

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.

18

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

46
lemmy.world

Z-index is how you set the layering of your web page. If I have elements with Z-index of -1000, 0, and 99999 they will overlay each other in that order with 99999 being on top.

The joke is that he put his div on the highest layer and still doesn't see it.

4

You reached the end

Noooooo my div | Spyke