justify-content and align-items
justify-content places items along the main axis. align-items places them on the cross axis. Values include flex-start, center, space-between and space-around.
Example
<style>
.f { display: flex; justify-content: space-between; align-items: center; height: 70px; background: #1e293b } .f div { background: #f59e0b; color: #000; padding: 6px }
</style>
<div class="f"><div>A</div><div>B</div><div>C</div></div>Exercise
Even space between items.
justify-content: space-;
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.