Login
You're viewing the discuss.systems public feed.
  • Nov 8, 2024, 9:31 AM

    Am I the only one who gets heavily confused that – to position a flex item – I have to align the items and justify the content. No, uhm, I align the content and justify the items? I'm sure there is logic behind this! But hey: What do you think? Which is the correct way to do the same alignment with grid?

    This. Is. Not. Logical. 😭

    #css #flexbox

    💬 1🔄 0⭐ 0

Replies

  • 💬 1🔄 0⭐ 0
  • Nov 8, 2024, 10:02 AM

    @yatil Yes, those are my go-to docs for flexbox as well 👍 I just think that the terms `content` and `items` are really bad choices because it's ambiguous what they mean. Is content just everything or are we talking about text content? And items: is a text node an item or not? This seems to be defined different in flexbox and grid … or I just don't get it 🤪

    I always manage to get my layouts right in the end – so that's fine. And I actually do *love* flexbox and grid – but I hate this ambiguity 😆

    💬 0🔄 0⭐ 0
  • Nov 8, 2024, 10:56 AM

    @nilshoerrmann I need to look this up every. Single. Time!

    Actually, most of the time now I just use Chrome's dev tools picker, and then copy it across into my CSS …

    💬 0🔄 0⭐ 0