Margin

A collection of utility classes to add spacing between elements.


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Medium margin

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Large margin

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

XLarge margin

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Auto margin

Using advanced settings and classes, use margin with Flex stack to compose block elements.
CLASS DESCRIPTION
uk-margin-auto
Sets left and right margin to auto, horizontally centering block and flex elements.
uk-margin-auto-top
Sets top margin to auto, pushing block and flex elements to the bottom.
uk-margin-auto-bottom
Sets bottom margin to auto, pushing block and flex elements to the top.
uk-margin-auto-left
Sets left margin to auto, pushing block and flex elements to the right.
uk-margin-auto-right
Sets right margin to auto, pushing block and flex elements to the left
uk-margin-auto-vertical
Sets top and bottom margin to auto, vertically centering only flex elements.
Block element
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Vertical margin and flex

Combine flex classes and vertical margin to position elements in a Grid.

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.