02.06.2015 Views

Bootstrap Tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER<br />

23<br />

<strong>Bootstrap</strong> Badges<br />

This chapter will discuss about <strong>Bootstrap</strong> badges. Badges are similar to labels; the primary difference is<br />

that the corners are more rounded.<br />

Badges are mainly used to highlight new or unread items. To use badges just add to<br />

links, <strong>Bootstrap</strong> navs, and more.<br />

The following example demonstrates this:<br />

Mailbox 50<br />

When there are no new or unread items, badges will simply collapse via CSS's :empty selector provided no<br />

content exists within.<br />

Active nav states<br />

You can place badges in active states of pill and list navigations. You can achieve this by placing to active links, as demonstrated in the following example:<br />

Example for Active State in Pill <br />

<br />

Home 42<br />

Profile<br />

Messages 3<br />

<br />

<br />

Example for Active State in navigations<br />

<br />

<br />

<br />

42<br />

Home<br />

<br />

<br />

Profile<br />

<br />

<br />

3<br />

Messages<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!