Languages
[Edit]
EN

CSS - justify content in flexbox (flex-direction: column)

4 points
Created by:
Wayne
475

In this article, we would like to show you how to justify content inside flex container in CSS, when flex-direction is set to column.

Note: to see the same effect in row flex direction check this article.

Overview

Edit

Working with flexbox, we can set justify-content property to the following values:

  • flex-start
  • flex-end
  • center
  • space-between
  • space-around
  • space-evenly

Following property organize items in the following way when flex-direction style property is set to column value.

CSS - justify-content property overview
CSS - justify-content property overview

Practical examples

Edit

1. flex-start

Edit

2. flex-end

Edit

3. center

Edit

4. space-between

Edit

5. space-around

Edit

6. space-evenly

Edit
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

CSS - Flexbox

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join