Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Bikonja23838yCSS is not a programming language and therefore the ! should not take on the meaning it has in programming and in normal language it means yelling which kind of means important in real life so...
I'll show myself out... -
Bikonja23838y@Greggergalactic you said it yourself - in development. CSS is not a devs job, it's a designers job who doesn't have to know a thing about programming, not even JS.
-
Bikonja23838y@Greggergalactic because companies don't want to pay separate designers and then you get apps looking like they were designed by a blind platypus. But normally, the designer should design and do the HTML and CSS, but not the JS and the dev should do the JS and backend.
-
Bikonja23838y@Greggergalactic yeah, but creation of the important CSS keyword predates that bullshit or even if it doesn't, it was meant for designers so that's why it's like that. You can't foresee who is going to end up using your product, in this case CSS, so you can't cater to the people who end up using it
-
Bikonja23838y@Greggergalactic yeah, I added the "show myself out" part in the hopes of conveying sort of a sarcastic tone... Guess it didn't work :)
Related Rants
Have you ever wondered why !important is even working? Imagine this:
element {
color: #FF0000 !important;
}
It literally means the red color is NOT IMPORTANT. And this overwrites previous CSS rules such as in this example, previous element.color. Like seriously, where is the logic here? :D
undefined
!important
not
wtf
css
logic
how
srsly?
wat
enlightenment