Click in order · HTML and CSS course · Module 4: Flexbox
Three Declarations for Perfect Centering
Arrange the three CSS declarations needed for perfect centering (first activate Flexbox, then main axis, then cross axis):
Items to click
- justify-content: center;
- align-items: center;
- display: flex;
You can check the correct answer by solving this task in the CodeWorlds game.