I am not allowed to credit the site that has this disaster. Its owner said “Nobody should see that”

  • TechieDamien@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    Client: “Can you switch these two colours, you have 1 minute to fix it or you’re fired!”

    Result:

      • Pasta Dental@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        At least that’s actually easy and quick to do and is the only way of doing it. Centering a div however has 81639393 ways and it seems the one that works is different every time

        • Codex@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          Bro its so easy bro, just use flexboxgridcolumns its been a standard since 2010 just flex it bro you haven’t learned to flex yet just check w3c schools and add a flex you can polyfill it but don’t use that hacked one use the good flexpolyfill then { content-align-middle-child-elements: center-middle-true-neutral } so easy with flex bro

  • dajoho@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I am very, very surprised about the competence of the commenters here. I have had many discussions on reddit about the advantages of meaningful instead of presentational class-naming and you’re normally met with great resistance, especially with users of frameworks like Bootstrap and Tailwind.

    Here, everyone seems to either ‘get it’ or is willing to hear why classes like .lime are bad. Very cool.