🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to CSS Notes
Topic #173

Flexbox Justify Content


CSS justify-content Property

The justify-content property aligns the flex items along the main-axis (horizontally).

This property can have one of the following values:

  • center
  • flex-start (default)
  • flex-end
  • space-around
  • space-between
  • space-evenly

Example

  .flex-container {

  display: flex;

  justify-content: center;
}

Example

  .flex-container {

  display: flex;

  justify-content: flex-start;
}

Example

  .flex-container {

  display: flex;

  justify-content: flex-end;
}

Example

  .flex-container {

  display: flex;

  justify-content: space-around;
}

Example

  .flex-container {

  display: flex;

  justify-content: space-between;
}

Example

  .flex-container {

  display: flex;

  justify-content: space-evenly;
}

Want to go beyond the notes?

Join CodingNow 2.0's CSS course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Flexbox Justify Content – FAQs

Quick answers about learning Flexbox Justify Content in CSS.

This free note from CodingNow 2.0 explains Flexbox Justify Content in CSS — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every CSS topic on CodingNow 2.0, including Flexbox Justify Content, is 100% free with no signup required.
With focused practice, most students grasp Flexbox Justify Content in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now