I'm trying to center the wrapper
, but have the actual tiles flex-start
. Something like this:
While the overall container is centered.
How can I make the tiles flex-start, but have wrapper
centered? Here's the code:
#wrapper {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.tile {
height: 100px;
width: 100px;
background-color: orange;
border: 1px solid black;
}
<div id="wrapper">
<div class="tile">1</div>
<div class="tile">2</div>
<div class="tile">3</div>
<div class="tile">4</div>
</div>