![]() |
VOOZH | about |
Primer CSS is a free open-source CSS framework that is built upon a GitHub design system to provide support to the broad spectrum of GitHub websites. It creates 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 a highly reusable model.
In this article, we will learn about the Header component of the Primer CSS. One such component of the Primer CSS is the Header component. The header component as the name suggests helps us to create a header for our website. Now, what is a header? A header is a component that has all the items vertically aligned. In Primer CSS, we can create a header by adding the โ.headerโ class to the element, and also we can create the items by adding the โ.header-itemโ class to the element.
Primer CSS Header Components:
Syntax:
<div class="Header">
<div class="Header-item">
...
</div>
<div class="Header-item">
...
</div>
...
</div>
Example 1: We have created a simple header with text and input fields.
Output:
Example 2: We have created a header with hyperlinks to the items.
Output: