Can any one help me why below logic is not showing all 3 boxes in “main axis”?
“display: flex;” is applied on the
<style>
#box {
background: black;
display: flex;
}
#box-1 {
background-color: dodgerblue;
width: 25%;
height: 100%;
}
#box-2 {
background-color: orangered;
width: 25%;
height: 100%;
}
#box-3 {
background-color: gray;
width: 25%;
height: 100%;
}
</style>
<div id="box">
<div id="box-1"></div>
<div id="box-2"></div>
<div id="box-3"></div>
</div>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
.
Challenge: Align Elements Using the justify-content Property
Link to the challenge: