Dropdowns

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

Examples

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.

Disabled element:

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

Menu alignment:

By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add .dropdown-menu-right to a .dropdown-menu to right align the dropdown menu.

Dropdown split buttons

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

Dropdown Sizing

Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.

Dropdown Directions

Dropup

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

Dropdown Directions

Dropright

Trigger dropdown menus above elements by adding .dropright to the parent element.

Dropdown Directions

Dropleft

Trigger dropdown menus above elements by adding .dropleft to the parent element.