0

I think it's easier to explain it visually. Here is the code I have.

<Box
    sx={{
        height: 500,
        paddingTop: 5,
    }}
>
<Box
    sx={{
        display: "flex",
        justifyContent: "flex-start",
        flexWrap: "wrap",
    }}
>
    {items}
</Box>
</Box>;

Produces this result: Bad result

This is what I want it to look like. The group of items are centered on the page, but they are still left aligned. Good result

If I simply change the justifyContent to "center" on the inner Box it will not achieve what I am going for. If I do justifyContent "center" on the outer it does nothing.

InSync
  • 4,851
  • 4
  • 8
  • 30
Evan Hessler
  • 297
  • 3
  • 19

0 Answers0