I have two flex items in a container wrapped in a column, and there it is a big space between the the two boxes, I tried to use align-items: flex-start;
or align-self: flex-start;
but does not work.
please look at the code snippet.
thank you.
.wrapper {
display: flex;
}
.content {
width: 300px;
height: 400px;
background: green;
}
.sidebar {
display: flex;
/* flex-basis: 100px; */
flex-wrap: wrap;
align-items: flex-start;
max-width: 100px;
}
.sidebar > div {
background: blue;
width: 100px;
height: 50px;
align-self: flex-start;
}
<div class = "wrapper">
<div class="sidebar">
<div></div>
<div></div>
</div>
<div class = "content">
</div>
</div>