Open In App

Primer CSS Select menu Footer

Last Updated : 24 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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. In this article, we will discuss Primer CSS Footer.

The Select menu Footer element can be defined by adding SelectMenu-footer class at the bottom element to display the additional information.

Primer CSS Footer class:

  • SelectMenu-footer: This class is used to add additional footer elements to the menu list.

Syntax:

<footer class="SelectMenu-footer">
    ...
</footer>

Example 1: Below is the example that illustrates the use of Primer CSS Footer.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title>Primer CSS Footer</title>
  <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" />
</head>
  
<body>
    <div class="pl-12" >
        <h1 style="color:green">GeeksforGeeks</h1>
        <h3>Primer CSS Footer</h3>
          
        <details class="details-reset details-overlay mt-3" open>
            <summary class="btn" aria-haspopup="true">
              Choose any Course
            </summary>
            <div class="SelectMenu">
              <div class="SelectMenu-modal">
                <header class="SelectMenu-header">
                  <h3 class="SelectMenu-title">
                    GeeksforGeeks Courses
                  </h3>
                </header>
                <div class="SelectMenu-list">
                    <button class="SelectMenu-item" role="menuitem">
                        DSA Self-Paced
                    </button>
    
                    <button class="SelectMenu-item" role="menuitem">
                        Complete Interview Preparation
                    </button>
    
                    <button class="SelectMenu-item" role="menuitem">
                        C++ STL
                    </button>
    
                    <button class="SelectMenu-item" role="menuitem">
                        Fork Python
                    </button>
                </div>
                <footer class="SelectMenu-footer">
                  © GeeksforGeeks
                </footer>
              </div>
            </div>
        </details>
    </div>
</body>
  
</html>


Output:

Primer CSS Footer

Example 2: This is another example that demonstrates the use of Primer CSS Footer.

HTML




<!DOCTYPE html>
<html>
  
<head>
  <title>Primer CSS Footer</title>
  <link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" />
</head>
  
<body>
    <div class="pl-12" >
        <h1 style="color:green">GeeksforGeeks</h1>
        <h3>Primer CSS Footer</h3>
          
        <details class="details-reset details-overlay mt-3" open>
            <summary class="btn" aria-haspopup="true">
              Choose any Events
            </summary>
            <div class="SelectMenu">
              <div class="SelectMenu-modal">
                <header class="SelectMenu-header">
                  <h3 class="SelectMenu-title">
                    GeeksforGeeks events
                  </h3>
                </header>
                <div class="SelectMenu-list">
                    <button class="SelectMenu-item" role="menuitem">
                      Interview Series #46
                    </button>
    
                    <button class="SelectMenu-item" role="menuitem">
                      Job-A-Thon 8: Hiring Challenge
                    </button>
    
                    <button class="SelectMenu-item" role="menuitem">
                      Get Hired with GeeksforGeeks at SuperK
                    </button>
    
                    <button class="SelectMenu-item" role="menuitem">
                      Bi-Wizard School Coding Tournament 4.0
                    </button>
                  </div>
                <footer class="SelectMenu-footer">
                    © GeeksforGeeks
                </footer>
              </div>
            </div>
        </details>
    </div>
</body>
  
</html>


Output:

Primer CSS Footer

Reference: https://primer.style/css/components/select-menu#footer



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads