I'm sorry, I checked out multiple answers but nothing seems to work. If somebody could point me into the right direction, that would be helpful!
I have a Wrapper and 8 Boxes:
<Wrapper>
<Box></Box>
<Box></Box>
<Box></Box>
<Box></Box>
<Box></Box>
<Box></Box>
<Box></Box>
<Box></Box>
</Wrapper>
I want my Flex Wrapper to break after 4 Boxes, so I want to have 4 Boxes in a row. I have solved this in the following way:
Wrapper:
const Wrapper = styled.div`
display: flex;
flex-wrap: wrap;`;
Box:
const Box = styled.div`
background-color: gray;
width: 150px;
height: 150px;
margin: 5px;`;
flex: 1 0 21%;`;
However, I'd like my Boxes to not stretch, I'd like them to always be 150x150px
. Right now they're stretching and they're not 150x150 - I don't know what to do though?