Align

Control the alignment of inline elements depending on the viewport size.

Align

Control the alignment of inline elements depending on the viewport size.

Usage

To align images or other elements with spacing between the text and the element, add one of these classes.

ClassDescription
.uk-align-leftFloats the element to the left and creates right and bottom margin.
.uk-align-rightFloats the element to the right and creates left and bottom margin.
.uk-align-centerCenters the element and creates bottom margin.
<img class="uk-align-left" src="" width="" height="" alt="">

Responsive

UIkit provides a number of responsive alignment classes. Basically, they work just like the usual alignment classes, except that they have suffixes that represent the breakpoint from which they come to effect.

ClassDescription
.uk-align-left@s
.uk-align-right@s
Only affects device widths of 640px and higher.
.uk-align-left@m
.uk-align-right@m
Only affects device widths of 960px and higher.
.uk-align-left@l
.uk-align-right@l
Only affects device widths of 1200px and higher.
.uk-align-left@xl
.uk-align-right@xl
Only affects device widths of 1600px and higher.
<img class="uk-align-center uk-align-right@m" src="" width="" height="" alt="">