Vertical alignment
Use the aligner
class on a container element to help vertically align the element's children to the top, center, or bottom. Use the aligner-item
and aligner-item-*
classes on the children of the container element to position them within the container.
The height of the aligner
element is set to 230 pixels by default but can be customized via CSS or inline styles.
Classes
Modifier | Purpose |
---|---|
aligner | Makes an element into a container with vertically-aligned children |
aligner-item | Makes an element int a child of the aligner container (centered vertically by default) |
aligner-item-top | Aligns an item to the top of the container |
aligner-item-bottom | Aligns an item to the bottom of the container |
Imports
Import CSS:
import 'pivotal-ui/css/vertical-alignment';