Primer CSS Negative Offset Columns Last Updated : 07 Mar, 2024 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 offers Negative Offset Columns have classes that can be used to pull a div over a column distance to the left. Primer CSS Negative Offset Columns usedclasses: offset-n1: This class is used to provide a 1 unit distance to the left.offset-n2: This class is used to provide a 2 unit distance to the left.offset-n3: This class is used to provide a 3 unit distance to the left.offset-n4: This class is used to provide a 4 unit distance to the left.offset-n5: This class is used to provide a 5 unit distance to the left.offset-n6: This class is used to provide a 6 unit distance to the left.offset-n7: This class is used to provide a 7 unit distance to the left. Syntax: <div class="mx-auto border" style="width: 500px"> <div class="offset-n1 col-4 border p-4"> ... </div> </div> Example 1: Below example demonstrates the use of Primer CSS Negative Offset Columns with offset-n1, offset-n2, offset-n3, and offset-n4 classes. HTML <!DOCTYPE html> <html> <head> <title> Primer CSS Negative Offset Columns </title> <link href= "https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" rel="stylesheet" /> </head> <body> <h1 class="color-fg-success text-center"> GeeksforGeeks </h1> <h3 class="text-center"> Primer CSS Negative Offset Columns </h3> <div class="mx-auto border mt-5" style="width: 500px"> <div class="offset-n1 col-4 border p-4"> n1 distance left offset </div> <div class="offset-n2 col-4 border p-4"> n2 distance left offset </div> <div class="offset-n3 col-4 border p-4"> n3 distance left offset </div> <div class="offset-n4 col-4 border p-4"> n4 distance left offset </div> </div> </body> </html> Output: Primer CSS Negative Offset Columns Example 2: Below example demonstrates the use of Primer CSS Negative Offset Columns with offset-n5, offset-n6, and offset-n7 classes. HTML <!DOCTYPE html> <html> <head> <title>Primer CSS Negative Offset Columns</title> <link href= "https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" rel="stylesheet" /> </head> <body> <h1 class="color-fg-success text-center"> GeeksforGeeks </h1> <h3 class="text-center"> Primer CSS Negative Offset Columns </h3> <div class="mx-auto border mt-5" style="width: 500px"> <div class="offset-n5 col-4 border p-4"> n5 distance left offset </div> <div class="offset-n6 col-4 border p-4"> n6 distance left offset </div> <div class="offset-n7 col-4 border p-4"> n7 distance left offset </div> </div> </body> </html> Output: Primer CSS Negative Offset Columns Comment More infoAdvertise with us Next Article Primer CSS Negative Offset Columns T thacker_shahid Follow Improve Article Tags : Web Technologies CSS Primer-CSS Primer-CSS Utilities Similar Reads Primer CSS Grid Offset Columns 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 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 CSS column-gap Property The column-gap property in CSS is used to specify the amount of gap between the columns in which a given text is divided using the column-count property. Syntax:column-gap: length | normal | initial | inherit;Default Value: normal Property Values:Property ValueDescriptionlengthThis value specifies t 3 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 Primer CSS Layout Alignment 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 CSS Multiple Columns CSS Multiple Columns is a property used to divide content into multiple columns, similar to a newspaper layout. It improves readability and organizes content efficiently across different screen sizes.Key Properties of CSS Multiple ColumnsBelow is a list of essential CSS properties for working with m 5 min read Primer CSS Grid Centering a Column 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 CSS column-fill Property The column-fill property in CSS is used to specify whether the columns will be filled in a balanced manner or not.Syntax: column-fill: auto|balance|balance-all|initial|inherit;Default Value: balanceProperty Values: balance: This is the default value for the property. This value fills each column wit 3 min read CSS column-rule Property The column-rule property in CSS is used to specify the width, style, and color of the rules between the columns.Syntax: column-rule: column-rule-width column-rule-style column-rule-color| initial|inherit;Property Values: column-rule-width: This value is used to set the width of the rule between the 3 min read Like