I'm trying to make a grid that is ultimately center aligned but where the items are left and top aligned.
Here's a reproduction: http://jsfiddle.net/Ae8Wv/1306/
I thought that creating 1 parent container, with either text-align: center
or display: flex; justify-content: center;
and then adding a child container with the style display: flex; justify-content: flex-start; align-items: flex-start; flex-flow: row wrap;
and then adding a bunch of child items with fixed widths would result in what I was looking for.
but it looks like the flex container handling the list of items doesn't take on an auto width of the longest widths of one of the rows but rather expands to the max width possible due to I'm guessing the fact that before wrapping the width was 100%+++++
Is there a solution to this?
It looks like there isn't due to this answer showing the same problem: Centered Grid - Inner Grid align left - NO Javascript - NO Medias Queries