VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-grid-column-widths/

โ‡ฑ Primer CSS Grid Column Widths - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Grid Column Widths

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. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโ€™s design system.

Primer CSS Grid Column Widths are used to specify the percentage-based columns widths to any block and inline element.

Primer CSS Grid Column Widths Classes:

  • col-*: This class is used to specify the number of columns the element is taking.
  • float-right: This class is used to float the element right.

Syntax:

<div>
 <div class="col-4 float-right">
 ...
 </div>
 <p> .... </p>
</div>

Example 1: The following example demonstrates the Primer CSS Grid Column Widths.


Output:

๐Ÿ‘ Image
Primer CSS Grid Column Widths

Example 2: The following example demonstrates the Primer CSS Grid Column Widths using images.


Output:

๐Ÿ‘ Image
Primer CSS Grid Column Widths

Reference: https://primer.style/product/css-utilities/#column-widths

Comment