---
title: Dropdown
description: Dropdown panes are little happy sprites which can be revealed on click or hover.
sass: scss/components/_dropdown.scss
js: js/foundation.dropdown.js
video: '0F68zptD_nQ'
---
## Basics
To create a dropdown pane, add the class `.dropdown-pane` and the attribute `data-dropdown` to an element. Give the dropdown a unique ID as well.
To create the dropdown trigger, add `data-toggle` to a ``. The value of `data-toggle` is the ID of the dropdown.
Watch this part in video
```html_example
Toggle Dropdown
Example form in a dropdown.
Hoverable Dropdown
Just some junk that needs to be said. Or not. Your choice.
```
---
## Positioning
By default, a dropdown anchors below the button that opened it. Add the class `.top`, `.right`, or `.bottom` to the dropdown to change this.
```html_example
Top Aligned
Just some junk that needs to be said. Or not. Your choice.
```
Left Aligned
Just some junk that needs to be said. Or not. Your choice.
Right Aligned
Just some junk that needs to be said. Or not. Your choice.
Adding `.float-right` or `.float-left` to the anchor will change the direction of the dropdown as well.
Bottom-right Aligned
Just some junk that needs to be said. Or not. Your choice.
Bottom-left Aligned
Just some junk that needs to be said. Or not. Your choice.
---
## Explicit Positioning
New in v6.4: Heads up! This explicit positioning model is a new feature in v6.4.
Wouldn't it be great if you can define both positions at the dropdown element. Dropdown has a fully explicit positioning model through which you can use both `data-position` and `data-alignment` to define both positions of the box.
These dropdowns test various positioning and alignments. Valid positions are left/right/top/bottom. Valid alignments are left/right/top/bottom/center. Left align means left sides should line up. Right align means right sides should line up. Center align means centers should line up.
#### Top and Bottom positioned
```html
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
```
Bottom Left
Toggle Dropdown
This dropdown has position bottom and alignment left should align with its top left corner at the bottom left of the button
Bottom Center
Toggle Dropdown
This dropdown has position bottom and alignment center should align below the button with its center aligned with the center of the button
Bottom Right
Toggle Dropdown
This dropdown has position bottom and alignment right should align with its top right corner at the bottom right of the button
Top Left
Toggle Dropdown
This dropdown has position top and alignment left should align with its bottom left corner at the top left of the button
Top Center
Toggle Dropdown
This dropdown has position top and alignment center should align above with its center aligned with the center of the button
Top Right
Toggle Dropdown
This dropdown has position top and alignment right should align with its bottom right corner at the top right of the button
#### Left and Right Positioned
```html
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
Toggle Dropdown
```
Right Top
Toggle Dropdown
This dropdown has position right and alignment top should align with its top left corner at the top right of the button
Left Top
Toggle Dropdown
This dropdown has position left and alignment top should align with its top right corner at the top left of the button
Right Center
Toggle Dropdown
This dropdown has position right and alignment center should align to the right of the button with the center of the dropdown vertically aligned with the center of the button
Left Center
Toggle Dropdown
This dropdown has position left and alignment center should align to the left of the button with the center of the dropdown vertically aligned with the center of the button
Right Bottom
Toggle Dropdown
This dropdown has position right and alignment bottom should align with its bottom left corner at the bottom right of the button
Left Bottom
Toggle Dropdown
This dropdown has position left and alignment bottom should align with its bottom right corner at the bottom left of the button