--- title: Dropdown basics layout: nested-component.html ---

Dropdown basics

Dropdown types

We have expanded on the basic Bootstrap dropdowns. A consequence of this is that the markup required can be a little more complicated, but it also makes the dropdowns alot more flexible.

The classic <ul> dropdown

An <ul> inside a .dropdown container. (Not much point in this, but it is possible.)

A content-dropdown. This is the most advanced dropdown available, and as such it varants it's own documentation! See more examples on how to use it here: Content-dropdowns

Dropups

You can have your "dropdowns" expand upwards instead of downwards!

Sizes

Want wider or more narrow dropdowns? We offer two additional sizes for your dropdowns. Add .dropdown-sm or .dropdown-lg to the .dropdown-menu.

Colors

Dropdowns comes in two colored flavors - the standard white, and an inverted dark dropdown. Simply add the class .dropdown-inverse to the dropdown to make it dark.

Alignment

You can control the horizontal alignment of the dropdown, relative to the .dropdown container by adding .align-left(default) or .align-right to the .dropdown-menu. This is very useful if you know that your dropdown resides close to the right edge of the viewport.

Animations

We have created three types of animations to be used with the dropdowns. Apply these to the .dropdown-menu itself.

Class Result
.animate-expand Expands and fades the menu and the inner .dropdown-content from 0 height.
NOTE: This animation relies on a "magic number" for it's expanded height. If you build a dropdown which get's cut off, then you need to adjust the max-height property of your specific dropdown. The global, and dangerous scss variable can be found in _custom.scss under $animation-expand-magic-number
NOTE: This animation requires the .dropdown-content wrapper.
.animate-fade A classic fading animation
.animate-fade-up Fades and translates the menu up

Dropdown components

Dropdowns comes with a few sub-components to aid in building beautiful dropdowns