Saturday, May 19, 2018

Explain the structure of Bootstrap Badges.

Badges

Basically Bootstrap Badges are numerical indicators of how many items are associated with a link:
1.News 5
2.Comments 10
3.Updates 2

The numbers (5, 10, and 2) are the badges.
Use the .badge class within <span> elements to create badges:

Example

<a href="#">News <span class="badge">5</span></a><br>
<a href="#">Comments <span class="badge">10</span></a><br>
<a href="#">Updates <span class="badge">2</span></a>

No comments:

Post a Comment