Bootstrap 4 Badges |
Here is how badge headers will look like?
Lets see an example,
<h1>Your heading <span class="badge badge-warning">New</span></h1>
<h2>Your heading <span class="badge badge-warning">New</span></h2>
<h3>Your heading <span class="badge badge-warning">New</span></h3>
<h4>Your heading <span class="badge badge-warning">New</span></h4>
<h5>Your heading <span class="badge badge-warning">New</span></h5>
<h6>Your heading <span class="badge badge-warning">New</span></h6>
Demo
Badges with Contextual classes
Include any of the contextual classes with badges to change the appearance of a badge. Lets look into an example,<span class="badge badge-info">Info</span>
<span class="badge badge-primary">Primary</span>
<span class="badge badge-secondary">Secondary</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-danger">Danger</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-light">Light</span>
<span class="badge badge-dark">Dark</span>
Demo
Pill Badges
Use badge-pill class to create badge with rounded corners.<span class="badge badge-pill badge-info">Info</span>
<span class="badge badge-pill badge-primary">Primary</span>
<span class="badge badge-pill badge-secondary">Secondary</span>
<span class="badge badge-pill badge-success">Success</span>
<span class="badge badge-pill badge-danger">Danger</span>
<span class="badge badge-pill badge-warning">Warning</span>
<span class="badge badge-pill badge-light">Light</span>
<span class="badge badge-pill badge-dark">Dark</span>
Comments