Coding task · HTML and CSS course · Module 4: Flexbox

Alignment with justify-content

The justify-content property controls the distribution of elements along the main axis. Key values include: flex-start (default, aligns to the start), flex-end (aligns to the end), center (centered), space-between (evenly distributed with items at edges), space-around (even space around each item), space-evenly (equal spacing everywhere).

Task

Create three flex containers with different justify-content values: center, space-between, and space-around, to see the differences in element distribution.