Primer CSS Grid Column Widths 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 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. HTML <!DOCTYPE html> <html> <head> <title> Primer CSS Grid Column Widths </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 Column Widths </h3> <br> <div> <div class="col-4 float-right p-1 border-dashed color-fg-success"> <strong> Floated right </strong> </div> <p> A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles </p> </div> </div> </body> </html> Output: Primer CSS Grid Column Widths Example 2: The following example demonstrates the Primer CSS Grid Column Widths using images. HTML <!DOCTYPE html> <html> <head> <title> Primer CSS Grid Column Widths </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 Column Widths </h3> <br> <div> <div class="col-3 float-right p-1 color-fg-success"> <img src= "https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png" > </div> <div class="col-4 float-right p-1 color-fg-success"> <img src= "https://media.geeksforgeeks.org/wp-content/cdn-uploads/20200617163105/gfg-logo.png" > </div> <p> A Computer Science portal for geeks. It contains well written, well thought and well-explained computer science and programming articles. A Computer Science portal for geeks. It contains well written, well thought and well-explained computer science and programming articles </p> </div> </div> </body> </html> Output: Primer CSS Grid Column Widths Reference: https://primer.style/css/utilities/grid#column-widths Comment More infoAdvertise with us Next Article Primer CSS Grid Column Widths harendra4373 Follow Improve Article Tags : Web Technologies CSS Primer-CSS Primer-CSS Utilities Similar Reads 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 column-width Property The columns-width property in CSS is used to define the width of the columns. The minimum number of columns are required to show the content across the element. It is a flexible property. If the browser cannot fit at least two-columns at a given column-width then the two columns will be put into a s 4 min read 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 Pure CSS Grids with Multi-Column Form Pure CSS is a free and open-source CSS framework. It is a collection of tools for creating web applications and responsive web pages. This was developed by Yahoo and is used to make web pages that are more user-friendly, aesthetically pleasing, and quick. It is a potent replacement for Bootstrap. Th 4 min read CSS grid-auto-columns Property The grid-auto-columns CSS property specifies the size of implicitly-created grid columns using values like auto, lengths, percentages, minmax(), and more, ensuring flexible and controlled grid column sizing.Syntaxgrid-auto-columns: auto | max-content | min-content | length | percentage | minmax(min, 5 min read CSS column-rule-width Property The column-rule-width property in CSS is used to change the width of the column rule i.e., the vertical lines between the columns.Syntax: column-rule-width: length|thin|medium|thick|initial|inherit;Default Value: medium Property Values: thin: It is used to set a thin rule between the columns.medium: 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 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 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 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 Like