Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Primer CSS Header-Link

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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 Header is used to make a header with vertically aligned items and horizontal spacing. Primer CSS Header-Link is used to create the header item link using Header-link class. In this article, we will discuss the Primer CSS Header-Link.

Primer CSS Header-Link Class:

  • Header-link: This class is used to create the header item link.

Syntax:

<div class="Header">
  <div class="Header-item">
    <a href="#" class="Header-link">
        ...
    </a>
  </div>
</div>

Example 1: The following code demonstrates the Primer CSS Header-Link.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title> Primer CSS Header-Link </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 Header-Link </h3>
    </div> <br> <br>
  
    <div class="Header">
        <div class="Header-item">
            <a href="#" class="Header-link">
                GFG Link 1
            </a>
        </div>
        <div class="Header-item">
            <a href="#" class="Header-link">
                GFG Link 2
            </a>
        </div>
    </div>
</body>
  
</html>


Output:

Primer CSS Header-Link

Example 2: The following code demonstrates the Primer CSS Header-Link.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title> Primer CSS Header-Link </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 Header-Link </h3>
    </div><br><br>
  
    <div class="Header">
        <div class="Header-item">
          <a href="#" class="Header-link">
            GFG Link 1
          </a>
        </div>
        
        <div class="Header-item Header-item--full">
            <a href="#" class="Header-link">
              GFG Link 2
            </a>
        </div>
        
        <div class="Header-item">
            <a href="#" class="Header-link">
              Logn In
            </a>
        </div>
        
        <div class="Header-item">
            <a href="#" class="Header-link">
              Sign Up
            </a>
        </div>
    </div>
</body>
  
</html>


Output:

Primer CSS Header-Link

Reference: https://primer.style/css/components/header#header-link


My Personal Notes arrow_drop_up
Last Updated : 19 Apr, 2022
Like Article
Save Article
Similar Reads
Related Tutorials