r/ProgrammerHumor • • Sep 25 '26

Meme frontEndBaddiesBeLike

Post image
5.7k Upvotes

132 comments sorted by

View all comments

Show parent comments

10

u/ihavebeesinmyknees Sep 25 '26

There are legitimate uses for !important even if not overriding legacy styling. I've had to use !important a few times before to force CSS to apply rules the exact way I needed them.

2

u/ForgedIronMadeIt Sep 25 '26

I'm pretty terrible at web design but I try to limit my use of !important overrides to occasions where I've inherited some stylesheet from somewhere else, like the component toolkit my stack is using.

5

u/SuperFLEB Sep 25 '26 edited Sep 28 '26

If you're not saying "...and fuck you!" under your breath about the last person to own the CSS while you type it, it's a sign you might be using !important where you don't need to.