CSS Code Completion Easy +10 XP
Center with Flexbox
Complete to center content both ways.
CSSFill in the blank
.center {
display: flex;
align-items: center;
justify-content: ___
}Type the missing code
Show answer and explanation
Answer: center
justify-content: center centers items along the main axis; align-items: center on the cross axis.
Hint: Same value centers along main axis.
What this challenge tests
Code Completion in CSS: flexbox, centering.