YouTip LogoYouTip

Bootstrap Badges

# Bootstrap Badges This chapter will explain Bootstrap Badges. Badges are similar to Labels, but the main difference is that Badges have more rounded corners. Badges are primarily used to highlight new or unread items. To use a badge, simply add **** to links, Bootstrap navigation, and other elements. The following example demonstrates this: ## Example Display unread mail: Mailbox 50 [Try it Β»](#) The result is shown below: ![Image 3: Badges](#) When there are no new or unread items, the badge will collapse via the CSS **:empty** selector, indicating it contains no content. ## Example Display unread messages:

Badges

The .badge class specifies the number of unread messages:

Inbox 21

[Try it Β»](#) * * * ## Active Navigation State You can place badges within active pill navigation and list navigation. Use **** to activate links, as shown in the following example: ## Example

Active state in pill navigation


Active state in list navigation

[Try it Β»](#) The result is shown below: ![Image 4: Active Navigation State](#)
← Bootstrap JumbotronBootstrap Labels β†’