My intention was to have one big square and inside it two small squares.
One square (small-left) is supposed to stick to the left end of the big square, and the other(small-right) is supposed to stick to the right end.
This is what I get:
Do you know what can make the right-small square stick to the right?
Please look at the code I wrote:
.big {
display: flex;
width: 40vw;
height: 10vw;
border: solid;
flex-direction: row;
}
.small-right,
.small-left {
width: 5vw;
height: 5vw;
border: solid;
}
.small-right {
align-items: flex-end;
}
<div class="big">
<div class="small-left"></div>
<div class="small-right"></div>
</div>
You can also see the code in Code-Pen: https://codepen.io/CrazySynthax/pen/OmMxQw