Lemdro.id
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
siriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

Noooooo my div

lemmy.world

message-square
19
fedilink
496

Noooooo my div

lemmy.world

siriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
19
fedilink
  • sbv@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    30
    arrow-down
    1
    ·
    2 years ago

    !importanter;

    • Xylight (Photon dev)@lemmy.xylight.dev
      link
      fedilink
      English
      arrow-up
      36
      ·
      2 years ago

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

      • whatisallthis@lemm.ee
        link
        fedilink
        arrow-up
        14
        ·
        2 years ago

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

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

        • FUsername@feddit.de
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          2 years ago

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

          • MellowSnow@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            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!

        • elxeno@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          perfect

        • havocpants@lemm.ee
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          2 years ago

          this and the parent comment have blown my mind.

      • lukas@lemmy.haigner.me
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        deleted by creator

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 17 users / day
  • 1.01K users / week
  • 3.45K users / month
  • 10.1K users / 6 months
  • 86 local subscribers
  • 36.5K subscribers
  • 1.75K Posts
  • 37.5K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • UI: 0.19.8
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org