• Ensign_Crab@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    14 hours ago

    It’s nonintuitive and could have been designed better from the outset, but it’s not impossible or even difficult. Now can we fight about something meaningful?

    vim and emacs are right there, people.

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      4 hours ago

      Emacs has a better file-manager and you can setup an extremely great latex-editor.

      Also extensions don’t randomly not work on bsd as much. There is even evil-mode and no-window option.

      The only place vim wins at is that there is an optional and lightweight autcomplete with lsp support you can activate by pressing <C-n> or <C-p> during interactive mode.

      And NOBODY uses it.

  • Korthrun@lemmy.sdf.org
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    Lol, easier to write an article theorizing the ways it can be done than to just show him a centered div.

  • tiredofsametab@fedia.io
    link
    fedilink
    arrow-up
    66
    arrow-down
    1
    ·
    2 days ago

    <CENTER><DIV>just as the founders intended</DIV></CENTER>

    / If your language has 58 ways to accomplish something like that, you’re in for a bad time.

  • TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    1 day ago

    Do people who talk this kind of shit about css really not understand they’re just admitting they’re not good at css?

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    36
    ·
    2 days ago

    Centering a div is pretty fucking easy nowadays. What’s way harder is aligning a god damned SVG icon with text.

    • YoSoySnekBoi@kbin.earth
      link
      fedilink
      arrow-up
      12
      ·
      1 day ago

      Even that is pretty easy nowadays with modern CSS:

      <div> <svg /> Text </div>
      
      div {
          display: flex;
          align-items: center;
      
          /* If the SVG needs an offset */
          & svg {
              --offset: ...px, ...px;
              transform: translate(var(--offset));
          }
      }
      
      • onlinepersona@programming.dev
        link
        fedilink
        arrow-up
        14
        arrow-down
        1
        ·
        1 day ago

        Yeah. Easy. So easy. Text size changes, svg not centered anymore. Add margin (or whatever that inside margin is called), and tada, not centered.

        • funkless_eck@sh.itjust.works
          link
          fedilink
          arrow-up
          15
          ·
          1 day ago

          padding

          At the risk of getting flamed - I wonder if because CSS is a design tool not a programming tool, it will seem unintuitive to people from a technical background, but more intuitive to people from a design/arts background

          • TrickDacy@lemmy.world
            link
            fedilink
            arrow-up
            9
            ·
            edit-2
            1 day ago

            Exactly this ^

            When we had “backend” people at my shop, they were god awful at css. It was so bad at one point that I scolded any backend person who touched css because they always fucked shit up if they did.

          • onlinepersona@programming.dev
            link
            fedilink
            arrow-up
            8
            ·
            1 day ago

            I think you’re right. CSS was more understandable to me after reading that it came from the world of print media. It’s how things were laid out there and it was transformed into a language from those with domain knowledge.

            But I would be curious if those who studied art also use the same terminology. If so, then it would make sense that it would seem more intuitive to them.

        • YoSoySnekBoi@kbin.earth
          link
          fedilink
          arrow-up
          7
          ·
          1 day ago

          I’m confused - it’s the only non-semantic standard html container. Ofc it’s bad if you’re trying to communicate intent, but if it’s just for minor layout tweaks, anything else would mess with the document structure. Find me one sufficiently complex website that doesn’t use divs lol

  • LumpyPancakes@piefed.social
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 day ago

    I only know how to stick it in a cell in a table and center the cell.

    Never learned css, a bit left behind now hehe.