Question: What will be the result of the following CSS code? Hint: justify - content always controls the alignment of items along the main axis, while

What will be the result of the following CSS code? Hint: justify-content always controls the alignment of items along the main axis, while align-items always controls the alignment of items along the cross axis. flex-direction determines the main axis.
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
}
.item {
width: 100px;
height: 100px;
background-color: red;
}
What will be the result of the following CSS code? Hint: justify-content always controls the alignment of items along the main axis, while align-items always controls the alignment of items along the cross axis. flex-direction determines the main axis.
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
}
.item {
width: 100px;
height: 100px;
background-color: red;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!