SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • 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
20
fedilink
495

Noooooo my div

lemmy.world

siriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
20
fedilink
alert-triangle
You must log in or register to comment.
  • odium@programming.dev
    link
    fedilink
    arrow-up
    75
    ·
    2 years ago

    z-index: 999999 !important;

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

      !didistutter?;

    • 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.

    • AlecSadler@lemmy.ml
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 years ago

      I actually encountered an issue earlier today where my important wasn’t working…and it was because another dev had already added a more specific important.

      I deleted their important.

      • SnowdenHeroOfOurTime@unilem.org
        link
        fedilink
        arrow-up
        8
        ·
        2 years ago

        I support this. Assert dominance.

    • GombeenSysadmin@feddit.uk
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      When I read that, I can never not say “not important” in my head

      • hellishharlot@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Yeah I think that makes CSS a manager. It’s always prioritizing not important things

      • odium@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Same

  • cs127
    link
    fedilink
    arrow-up
    46
    ·
    edit-2
    2 years ago

    the z index is so high that the div escaped your monitor and is behind your head now

  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    27
    arrow-down
    6
    ·
    2 years ago

    “programmer”

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

    Always forget the position: relative

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

    Stacking contexts

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

      Along with transforms being 3d or flat transform styles

  • Kaped@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    9
    ·
    edit-2
    2 years ago

    Removed by mod

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.

  • 249 users / day
  • 667 users / week
  • 1.73K users / month
  • 10.5K users / 6 months
  • 437 local subscribers
  • 35.6K subscribers
  • 1.72K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org