Deviation Actions

Celvas's avatar

Let's code! The Perils of !important

Published:
By
22 Comments
2K Views
I hate coming home to a coffee session because someone screwed

        celvas { beverage-family: 'FAK', teabag; }

up with a good old

        #fiance { beverage-family: 'Coffee', black !important; }

If you or your couterpart style your or your counterpart's life in a similar fashion, this is an insight for you. :nod:



Questions? Answers? Suggestions? Comments? Favs? Watches? Throw it my way! :dummy:





If you found this helpful, consider donating points to help me stay premium (among other things)! :)

Image details
Image size
800x1554px 496.86 KB
© 2013 - 2021 Celvas
Comments22
Join the community to add your comment. Already a deviant? Log In
SimplySilent's avatar
I use important when I'm too lazy to figure out where things are coming from and just want to override everything. :ashamed:
 :XD:
Celvas's avatar
Override everything... You know, you do sound a lot like Agent Smith from The Matrix. Only cuter. :hmm:
SimplySilent's avatar
Now I really need to hide behind the bag.

I haven't watched the Matrix. :ashamed:
Celvas's avatar
Don't worry, Simply. That's a shame only in terms of a perfectly fine similie. You really don't need to have watched it. There are cult films out there, and Matrix most definitely is not one of them.Exactly by Celvas
iDJPanda's avatar
YOU TEACH HOW TO CODE? I've been looking but it's been in front of my nose the hole time!
Celvas's avatar
YEAH I DO. You've been looking for ...? Code? Perils? !importance?
iDJPanda's avatar
I've been in peril but your help with codes is a lot of importance to my noob self.
Celvas's avatar
You seem to be doing well. :) Anyway, any questions or so, you know where to find me.
iDJPanda's avatar
I'm doing well? :iconlovesqueeplz:

Thank you so muchhhhh. :'DDDDD

I WILL! :'D
TehAngelsCry's avatar
Haha, I love your little analogy at the end :la:
Celvas's avatar
Ah, well, I always try to be a little Zen. A little. You know, Zen-ish. :D Who needs an angel and a devil on your shoulder when it is as simple as a pool filled with piranhas, or a pool not filled with piranhas. I'm so wise. I'm so Kill Bill 2. :o
TehAngelsCry's avatar
:granny: rewamp  << THIS IS YOU! 

Running in fear
 
Celvas's avatar
No, it isn't. Look over there. No, there. Outside of the granny smiley's border. Do you see that old chick in the rocking chair on the porch, insulting young humanoids walking by her lawn border and throwing garbage at them? THAT's me.
TehAngelsCry's avatar
XD Wahaha, you're not that old! 
GinkgoWerkstatt's avatar
Back when it all started with journal coding, there was a certain template that used !important for every line they had.
It was a template that pretty much covered everything that was possible to code back then and people just had to fill in values, image paths etc. A LOT of people used that and i have the feeling the ghost of this remains until now in the head of people.
Celvas's avatar
Ouch. Does make me wonder how come someone able to whip up a working template would go all !important on it. :hmm:
Thank you for your comment, ginkgo! :aww: I always love to hear a bit about the history of dA, as well as its workings. I'm pretty happy to have joined up after the main bugfest of Sta.sh & Co., though. :D
GinkgoWerkstatt's avatar
People usually stick to how they learn something first... i tried to educate people, but i have given up after a while. Luckily with the new gruze-structure !important is not that prominent or randomly used like before.
Celvas's avatar
Why is that?
GinkgoWerkstatt's avatar
Because people adjusted to that new structure with the new tutorials that don't use !important everywhere anymore.
PistachioInfernal's avatar
Good to know, thank you for sharing :).
Celvas's avatar
You're welcome. I often come across code that sports !important like it was the duct-tape holding the whole shebang together. Yesterday I was met with a particularly confusing example, which led me to write what you see up there. In perfect honesty, this isn't me sharing, this is me ranting. :giggle:
PistachioInfernal's avatar
You rant, but we learn. So it's a positive :nod::goodjob: revamp
Join the community to add your comment. Already a deviant? Log In