VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-flexbox-align-content/

⇱ Primer CSS Flexbox Align Content - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Flexbox Align Content

Last Updated : 23 Jul, 2025

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. 

Primer CSS Flexbox Align Content is used to create multiple main axis lines and adds extra space in the cross axis. Also, these classes are used to align the lines of the main axis on the cross axis.

Primer CSS Flexbox Align content Classes:

  • flex-content-start: This class is used to align specific content items to the start of the cross axis.
  • flex-content-end: This class is used to align specific content items to the end of the cross axis.
  • flex-content-center: This class is used to align specific content items to the center of the cross axis.
  • flex-content-between: This class is used to distribute the content evenly.
  • flex-content-around: This class is used to align specific content items around a cross axis.
  • flex-content-stretch: This class is used to stretch specific content items from the start of the cross-axis to the end of the cross axis.

Syntax:

<div class="border d-flex 
 Flexbox-Align-content-Class">
 ...
</div>

Example 1: This example demonstrates the Primer CSS Flexbox Align Content.


Output:

👁 Image
Primer CSS Flexbox Align Content

Example 2: This example demonstrates the Primer CSS Flexbox Align Content.


Output:

👁 Image
Primer CSS Flexbox Align Content

Reference: https://primer.style/product/css-utilities/#align-content

Comment