![]() |
VOOZH | about |
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 styles add padding to the left and right side of each column of layouts and apply a negative margin to the container so that the content inside each column lines up with content outside of the grid. Column Gutter helps in setting the gap (gutter) between elements layout columns i.e, between the main layout and sidebar layout. In this article, we will learn about Primer CSS Layout Column Gutter.
Primer CSS Layout Column Gutter Classes used:
Syntax:
<div class="Layout Layout--gutter-none"> <div class="Layout-main border"> ... </div> <div class="Layout-sidebar border"> ... </div> </div>
Example 1: Below example demonstrates the default column gutter.
Output:
Example 2: Below example demonstrates the column gutter none using the Layout--gutter-none class.
Output:
Example 3: Below example demonstrates the column gutter condensed using the Layout--gutter-condensed class.
Output:
Example 4: Below example demonstrates the column gutter spacious using the Layout--gutter-spacious class.
Output:
Reference: https://primer.style/#column-gutter