• whatisallthis
    link
    fedilink
    arrow-up
    15
    ·
    11 months 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
      ·
      11 months ago

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

      • MellowSnow@lemmy.world
        cake
        link
        fedilink
        arrow-up
        2
        ·
        11 months 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!

    • havocpants
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      11 months ago

      this and the parent comment have blown my mind.