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

Noooooo my div

lemmy.world

message-square
20
link
fedilink
495

Noooooo my div

lemmy.world

siriusmart@lemmy.world
cake
to Programmer Humor@lemmy.ml · 2 years ago
message-square
20
link
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
        ·
        2 years ago

        This… exists? This is horrible.

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.

  • 215 users / day
  • 896 users / week
  • 3.45K users / month
  • 10.2K users / 6 months
  • 440 local subscribers
  • 36.5K subscribers
  • 1.78K Posts
  • 38.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org