![]() |
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.
In this article, we'll see about Layout Sidebar positioning. We can change the position of the sidebar either to the start/left or end/right.
Primer CSS Layout Sidebar positioning Classes:
Syntax:
<div class="Layout Layout--sidebarPosition-start"> <div class="Layout-main border">...</div> <div class="Layout-sidebar border">...</div> </div>
Example 1: Below example demonstrates the layout sidebar with the start position.
Output:
Example 2: Below example demonstrates the layout sidebar with end position.
Output:
Reference: https://primer.style/#sidebar-positioning