Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Flex bot with items that only take up as much height as they need to

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #158534
    jgonyer1
    Participant

    I’m messing around with flexbox as a possible alternative for my needs, and I feel like this should be right in its wheelhouse. Essentially what I’m looking for is a Pinterest-esque layout without having to declare set heights for my items. Here’s a pen to mess with.

    As you can see, the items take up 100% of their row. Is there a way to make them only take up as much space as they need to?

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.