![]() |
VOOZH | about |
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 Nesting is used to put the grid inside another grid. We can put infinite grids within the columns because the column's width is in percentages. In this article, we will discuss Primer CSS Grid Nesting.
Primer CSS Grid Nesting Classes:
Syntax:
<div class="clearfix"> <div class="col-* float-left"> <div class="clearfix"> <div class="col-* float-left"> <div class="border"> ... </div> </div> </div> </div> </div>
Example 1: The following example demonstrates the Primer CSS Grid Nesting.
Output:
Example 2: The following example demonstrates the Primer CSS Grid Nesting.
Output:
Reference: https://primer.style/product/css-utilities/#nesting