Bootstrap - Dropdowns
We have styled all Bootstrap elements just as you want!
Basic Dropdown
Wrap the dropdown's trigger and the dropdown menu within .dropdown
, or another element that declares position: relative;
. Then add the menu's HTML.
Dropup
Dropdown menus can be changed to expand upwards (instead of downwards) by adding .dropup
to the parent.
Right Alignment
Wrap the dropdown's trigger and the dropdown menu within .dropdown
, or another element that declares position: relative;
. Then add the menu's HTML.
Headers & Dividers
Add a header to label sections of actions in any dropdown menu. Add a divider to separate series of links in a dropdown menu.
Disabled Items
Add .disabled
to a <li>
in the dropdown to disable the link.