• cley_faye
    arrow-up
    17
    arrow-down
    0
    ·
    2 months ago
    link
    fedilink

    There were tons of options with multiple HTML elements with a sequence of CSS properties to reliably provide vertical centering (and also use vertical space at the same time) back in the days.

    Now, between flex and grid (mainly flex for me, I find them more convenient) all the HTML scaffolding we used to make this work can be removed to get the same result. That’s what I mean with “no trick”.

    • lud
      arrow-up
      1
      arrow-down
      0
      ·
      2 months ago
      link
      fedilink

      Oh, I thought you meant you were centering in some special way.