• whatisallthis
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

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

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

      • MellowSnow@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year 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
      ·
      1 year ago

      this and the parent comment have blown my mind.