Button groups

Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with our buttons plugin.

Tooltips & popovers in button groups require special setting

When using tooltips or popovers on elements within a .button-group, you'll have to specify the option container: 'body' to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).

Basic Example

Wrap a series of buttons with .button in .button-group.

<div class="button-group">
  <button type="button" class="button button-default">Left</button>
  <button type="button" class="button button-default">Middle</button>
  <button type="button" class="button button-default">Right</button>
</div>

Button toolbar

Combine sets of <div class="button"> and <div class="button-group"> into a <div class="button-toolbar"> for more complex components.

<div class="button-toolbar">
  <div class="button">...</div>
  <div class="button-group">...</div>
  <div class="button-group">...</div>
  <div class="button">...</div>
</div>

Sizing

Instead of applying button sizing classes to every button in a group, just add .button-group-* to the .button-group.

<div class="button-group button-group-large">...</div>
<div class="button-group">...</div>
<div class="button-group button-group-small">...</div>
<div class="button-group button-group-mini">...</div>

Nesting

Place a .button-group within another .button-group when you want dropdown menus mixed with a series of buttons.

<div class="button-group">
  <button type="button" class="button button-default">1</button>
  <button type="button" class="button button-default">2</button>

  <div class="button-group">
    <button type="button" class="button button-default dropdown-toggle" data-toggle="dropdown">
      Dropdown
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
      <li><a href="#">Dropdown link</a></li>
      <li><a href="#">Dropdown link</a></li>
    </ul>
  </div>
</div>

Vertical Variation

Make a set of buttons appear vertically stacked rather than horizontally.

<div class="button-group-vertical">
  ...
</div>

Justified Link Variation

Make a group of buttons stretch at the same size to span the entire width of its parent.

Element-specific usage

This only works with <a> elements as the <button> doesn't pick up these styles.

<div class="button-group button-group-justified">
  ...
</div>

Button Dropdowns

Use any button to trigger a dropdown menu by placing it within a .button-group and providing the proper menu markup.

Plugin dependency

Button dropdowns require the dropdown plugin to be included in your version of Bootstrap.

Single button dropdowns

Turn a button into a dropdown toggle with some basic markup changes.

<!-- Single button -->
<div class="button-group">
  <button type="button" class="button button-default dropdown-toggle" data-toggle="dropdown">
    Action <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Split Button Dropdowns

Similarly, create split button dropdowns with the same markup changes, only with a separate button.

<!-- Split button -->
<div class="button-group">
  <button type="button" class="button button-danger">Action</button>
  <button type="button" class="button button-danger dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Sizing

Button dropdowns work with buttons of all sizes.

<!-- Large button group -->
<div class="button-group">
  <button class="button button-default button-large dropdown-toggle" type="button" data-toggle="dropdown">
    Large button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

<!-- Small button group -->
<div class="button-group">
  <button class="button button-default button-small dropdown-toggle" type="button" data-toggle="dropdown">
    Small button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

<!-- Mini button group -->
<div class="button-group">
  <button class="button button-default button-mini dropdown-toggle" type="button" data-toggle="dropdown">
    Extra small button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

Dropup Variation

Trigger dropdown menus above elements by adding .dropup to the parent.

<div class="button-group dropup">
  <button type="button" class="button button-default">Dropup</button>
  <button type="button" class="button button-default dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <!-- Dropdown menu links -->
  </ul>
</div>

Glyphicons

Available glyphs

Includes 180 glyphs in font format from the Glyphicon Halflings set. Glyphicons Halflings are normally not available for free, but their creator has made them available for Bootstrap free of cost. As a thank you, we only ask that you to include a link back to Glyphicons whenever possible.

  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-adjust
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-align-center
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-align-justify
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-align-left
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-align-right
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-arrow-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-arrow-left
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-arrow-right
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-arrow-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-asterisk
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-backward
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-ban-circle
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-barcode
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-bell
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-bold
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-book
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-bookmark
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-briefcase
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-bullhorn
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-calendar
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-camera
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-certificate
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-check
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-chevron-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-chevron-left
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-chevron-right
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-chevron-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-circle-arrow-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-circle-arrow-left
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-circle-arrow-right
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-circle-arrow-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-cloud
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-cloud-download
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-cloud-upload
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-cog
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-collapse-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-collapse-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-comment
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-compressed
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-copyright-mark
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-credit-card
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-cutlery
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-dashboard
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-download
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-download-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-earphone
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-edit
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-eject
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-envelope
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-euro
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-exclamation-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-expand
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-export
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-eye-close
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-eye-open
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-facetime-video
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-fast-backward
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-fast-forward
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-file
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-film
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-filter
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-fire
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-flag
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-flash
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-floppy-disk
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-floppy-open
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-floppy-remove
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-floppy-save
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-floppy-saved
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-folder-close
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-folder-open
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-font
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-forward
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-fullscreen
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-gbp
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-gift
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-glass
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-globe
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-hand-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-hand-left
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-hand-right
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-hand-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-hd-video
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-hdd
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-header
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-headphones
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-heart
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-heart-empty
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-home
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-import
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-inbox
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-indent-left
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-indent-right
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-info-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-italic
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-leaf
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-link
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-list
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-list-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-lock
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-log-in
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-log-out
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-magnet
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-map-marker
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-minus
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-minus-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-move
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-music
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-new-window
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-off
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-ok
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-ok-circle
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-ok-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-open
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-paperclip
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-pause
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-pencil
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-phone
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-phone-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-picture
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-plane
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-play
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-play-circle
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-plus
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-plus-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-print
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-pushpin
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-qrcode
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-question-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-random
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-record
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-refresh
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-registration-mark
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-remove
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-remove-circle
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-remove-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-repeat
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-resize-full
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-resize-horizontal
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-resize-small
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-resize-vertical
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-retweet
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-road
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-save
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-saved
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-screenshot
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sd-video
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-search
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-send
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-share
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-share-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-shopping-cart
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-signal
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort-by-alphabet
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort-by-alphabet-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort-by-attributes
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort-by-attributes-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort-by-order
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sort-by-order-alt
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sound-5-1
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sound-6-1
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sound-7-1
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sound-dolby
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-sound-stereo
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-star
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-star-empty
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-stats
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-step-backward
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-step-forward
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-stop
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-subtitles
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tag
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tags
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tasks
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-text-height
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-text-width
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-th
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-th-large
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-th-list
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-thumbs-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-thumbs-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-time
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tint
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tower
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-transfer
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-trash
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tree-conifer
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-tree-deciduous
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-unchecked
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-upload
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-usd
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-user
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-volume-down
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-volume-off
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-volume-up
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-warning-sign
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-wrench
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-zoom-in
  • .icon-glyph icon-glyph-glyphicons-halflings .icon-glyph-zoom-out

Labels and Badges

Labels

Labels Markup
Default <span class="label">Default</span>
Success <span class="label label-success">Success</span>
Warning <span class="label label-warning">Warning</span>
Danger <span class="label label-danger">Danger</span>
Info <span class="label label-info">Info</span>
Inverse <span class="label label-inverse">Inverse</span>

Badges

Name Example Markup
Default 1 <span class="badge">1</span>
Success 2 <span class="badge badge-success">2</span>
Warning 4 <span class="badge badge-warning">4</span>
Danger 6 <span class="badge badge-danger">6</span>
Info 8 <span class="badge badge-info">8</span>
Inverse 10 <span class="badge badge-inverse">10</span>

Easily collapsible

For easy implementation, labels and badges will simply collapse (via CSS's :empty selector) when no content exists within.