VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-alerts-flash-banner/

โ‡ฑ Primer CSS Alerts Flash Banner - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Alerts Flash Banner

Last Updated : 23 Jul, 2025

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 learn about Primer CSS Alerts Flash Banner. Primer CSS Alerts Flash Banner is used to flash a message that is fixed positioned at the top of the page.

Syntax:

<div class="flash flash-banner">
 <!--Flash banner message.-->
</div>

Example 1: In this example, we will simply place a flash banner. You will notice that the flash banner is placed at the top using the flash and flash-banner classes.

Output:

๐Ÿ‘ Image
 


Example 2: In this example, we will apply a button to get a flash banner. 

Output:

๐Ÿ‘ Image
 

Reference: https://primer.style/#flash-banner

Comment