Tricks with image classes
Image width
# The image will take half of parent container
(image: myawesomepicture.jpg class: uk-width-1-2)
# The image will take quoter of parent container
(image: myawesomepicture.jpg class: uk-width-1-4)Image align
Example when you want to contain image width to half of the parent container width and align it right:
# Half of parent container width, and align right
(image: myawesomepicture.jpg class: uk-width-1-2 uk-align-right)Example when you want to add an icon or smaller image and align it center:
Margin
Remove the left or right margin
Last updated