Primer CSS Grid Offset Columns Last Updated : 25 Apr, 2022 Comments Improve Suggest changes Like Article Like Report 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 Offset Columns are used to push the div to X columns using the offset classes. We can offset our element to any number of columns. In this article, we will discuss Primer CSS Grid Offset Columns. Primer CSS Grid Offset Columns Classes: offset-*: The classes vary from 0 to 12 to offset the columns. Syntax: <div class="clearfix"> <div class="offset-* col-3 border p-3"> ... </div> </div> Example 1: The following example demonstrates the Primer CSS Grid Offset Columns. HTML <!DOCTYPE html> <html> <head> <title> Primer CSS Grid Offset Columns </title> <link rel="stylesheet" href= "https://unpkg.com/@primer/css@^18.0.0/dist/primer.css"/> </head> <body> <div class="text-center"> <h1 class="color-fg-success"> GeeksforGeeks </h1> <h3> Primer CSS Grid Offset Columns </h3> <br> <div class="clearfix"> <div class="offset-1 col-2 border p-2"> GeeksforGeeks1 </div> <div class="offset-3 col-2 border p-2"> GeeksforGeeks2 </div> </div> </div> </body> </html> Output: Primer CSS Grid Offset Columns Example 2: The following example demonstrates the Primer CSS Grid Offset Columns. HTML <!DOCTYPE html> <html> <head> <title> Primer CSS Grid Offset Columns </title> <link rel="stylesheet" href= "https://unpkg.com/@primer/css@^18.0.0/dist/primer.css"/> </head> <body> <div class="text-center"> <h1 class="color-fg-success"> GeeksforGeeks </h1> <h3> Primer CSS Grid Offset Columns </h3> <br> <div class="clearfix"> <div class="offset-1 col-2 border p-2"> GeeksforGeeks1 </div> <div class="offset-3 col-2 border p-2"> GeeksforGeeks2 </div> <div class="offset-6 col-2 border p-2"> GeeksforGeeks3 </div> <div class="offset-5 col-2 border p-2"> GeeksforGeeks4 </div> </div> </div> </body> </html> Output: Primer CSS Grid Offset Columns Reference: https://primer.style/css/utilities/grid#offset-columns Comment More infoAdvertise with us Next Article Primer CSS Grid Offset Columns H harendra4373 Follow Improve Article Tags : Web Technologies CSS Primer-CSS Primer-CSS Utilities Similar Reads Primer CSS Grid Column Widths 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 2 min read Primer CSS Layout Column Gutter Primer CSS is a free and open-source CSS framework that is built using the GitHub design system for providing support to the broad spectrum of GitHub websites. It helps in creating the foundation of the basic style elements such as spacing, components, typography, color, etc. Primer CSS Gutter style 3 min read CSS grid-column Property The CSS grid-column property specifies a grid item's size and location in a grid layout. It controls the placement and span of grid items, allowing the specification of starting and ending column lines. This enables flexible and responsive design without altering the HTML structure.Syntaxgrid-column 4 min read CSS grid-template-columns Property The grid-template-columns property in CSS defines the number and size of columns in a grid layout. It allows you to set both fixed and flexible column sizes, making grid-based designs more adaptable to various layouts and responsive needs. iframe { width: 100%; height: 60vh; border: none; border-rad 4 min read Primer CSS Grid Containers 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. It is a system that assists us to build consistent user experiences efficiently with enough flexibility. This systematic approach e 2 min read Like