Settings

Dropdowns

Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
Basic

Wrap the dropdown’s toggle (your button or link) and the dropdown menu within .dropdown, or another element that declares position: relative;. Dropdowns can be triggered from <a>or <button>elements to better fit your potential needs.

Split Button

Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of .dropdown-toggle-splitfor proper spacing around the dropdown caret.

We use this extra class to reduce the horizontal paddingon either side of the caret by 25% and remove the margin-leftthat’s added for regular button dropdowns. Those extra changes keep the caret centered in the split button and provide a more appropriately sized hit area next to the main button.

Dropup

Trigger dropdown menus above elements by adding .dropupto the parent element.

Dropright

Trigger dropdown menus at the right of the elements by adding .droprightto the parent element.

Dropleft

Trigger dropdown menus at the left of the elements by adding .dropleftto the parent element.

Active Menu Item

Add .activeto items in the dropdown to style them as active.

Disabled Menu Item

Add .disabledto items in the dropdown to style them as disabled.

Dropdown Header

Add a header to label sections of actions in any dropdown menu.

Dividers

Separate groups of related menu items with a divider.

Text

Place any freeform text within a dropdown menu with text and use spacing utilities. Note that you’ll likely need additional sizing styles to constrain the menu width.

Forms

Put a form within a dropdown menu, or make it into a dropdown menu, and use margin or padding utilities to give it the negative space you require.