Tile

Create layout boxes with different backgrounds that can be arranged seamlessly next to each other.

Tile

Create layout boxes with different backgrounds that can be arranged seamlessly next to each other.

Usage

To apply this component, add the .uk-tile class to a <div> element. By default, a tile is blank. That is why it is important to add one of the following modifier classes for styling.

ClassDescription
.uk-tile-defaultApplies the default tile background.
.uk-tile-mutedApplies a muted tile background.
.uk-tile-primaryApplies the primary tile background.
.uk-tile-secondaryApplies a secondary tile background.
<div class="uk-tile uk-tile-default"></div>

Tile and padding

The tile component has some padding by default. To remove this or to apply different spacing, add one of the classes from the Padding component.

<div class="uk-tile uk-tile-default uk-padding-large"></div>