AES Encryption Explained: How It Works and Why It Matters
Jun 23, 2026
Generate CSS badge and pill notification styles with count, color variants, sizes, and positioning.
A CSS badge is a small visual element used to display counts, notifications, or status indicators on UI components like icons, buttons, and avatars. Badges can be pill-shaped (rounded rectangle) or circular, and are commonly placed at the top-right corner of a parent element.
CSS badges are created using simple styling properties like border-radius, background, and position: absolute for placement. They can also include animations like pulse or bounce to draw attention to new notifications.
Wrap your icon or button in a position: relative container, then add <span class="badge">1</span> inside it.
Yes. Badges can display any short text like "New", "Sale", or icons. The pill shape adjusts automatically to fit the content.
Set the Animation dropdown to "None" to generate the badge without any animation keyframes.
Yes. The .badge class can be used on any number of elements. For different colors, use additional modifier classes or inline styles.
Blog
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026