Tell us what’s happening:
Can someone explain to me whether the default direction for flex
is column ?
Because in a previous exercise the display: flex
created a horizontal flexbox.
I want to understand why the boxes in this exercise were not aligned horizonally,
thanks.
My code so far
<style>
#box-container {
display: flex;
height: 500px;
}
#box-1 {
background-color: dodgerblue;
align-self: center;
height: 200px;
width: 200px;
}
#box-2 {
background-color: orangered;
align-self: flex-end;
height: 200px;
width: 200px;
}
</style>
<div id="box-container">
<div id="box-1"></div>
<div id="box-2"></div>
</div>