Get the app to ++, post and comment
  • 9

    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

  • 0
    Man. I hate CSS. :P
  • 0
    Some things you just gotta accept :D
  • 3
    Good point. It should be !!important
  • 0
    @Greggergalactic Because it's super super important!
  • 4
  • 1
    CSS 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...
  • 1
    @Bikonja I mean.. I think we all get that. it's just inconsistent with how everyone understands a bang's placement in development.
  • 1
    @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.
  • 0
    @Bikonja I guess if you want to be a frontend person with very limited job options ;) I've been in the job hunt and every frontend design job mentions js and jQuery.
  • 1
    @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.
  • 1
    @Bikonja I'm not saying I don't agree. I've been doing frontend design for 20yrs and students out of college are constantly better and more creative than me with their style. It really is two different types of personalities/brains. But every frontend dev job I see wants you to be a frontend designer too, so whether it seems ridiculous or not, it's important.
  • 1
    @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
  • 1
    @Bikonja I know lol. I thought about defending it too but decided not to be so literal and have fun with the idea, hence the "!!important" comment.
  • 2
    @Greggergalactic yeah, I added the "show myself out" part in the hopes of conveying sort of a sarcastic tone... Guess it didn't work :)
  • 2
    @Bikonja oops haha. when I'm on devRant it's usually 5am or at the end of a long day so...

    joke
    My head
  • 0
    nice reading, guys 😃
  • 0
    @Greggergalactic that img is EXACTLY what I was thinking XD
Add Comment