scrimba
CSS Flexbox
Use the flex-direction Property to Make a Column
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Use the flex-direction Property to Make a Column
AboutCommentsNotes
Use the flex-direction Property to Make a Column
Expand for more info
index.html
run
preview
console
<style>
#box-container {
display: flex;
height: 500px;

}
#box-1 {
background-color: dodgerblue;
width: 50%;
height: 50%;
}

#box-2 {
background-color: orangered;
width: 50%;
height: 50%;
}
</style>

<div id="box-container">
<div id="box-1"></div>
<div id="box-2"></div>
</div>
Console
index.html
-0:24