Thanks for The Answer ... 2 h
Alex will explain you how ... 3 h
Alia just joined Messenger!3 h
Thanks for The Answer ... 2 h
Thanks for The Answer ... 2 h
Alex will explain you how ... 3 h
Alia just joined Messenger!3 h
Thanks for The Answer ... 2 h
Advanced multi-part components with lots of possibilities .
Easily create nice looking .buttons,which come in different styles
<buttonclass="button small">Xsmall</button><buttonclass="button">Default</button><buttonclass="button Large">Large</button><buttonclass="button xlarge">xlarge</button>
There are several style modifiers available. Just add one of the following classes to apply a different look.
.success
.secondary
.danger
.success
.info
.dark
.grey
.dark
.white
.light
<buttonclass="button danger">danger</button>
<buttonclass="button outline-success">success</button>
<buttonclass="button soft-success">success</button>
add .disabled
to make disable
<buttonclass="button soft-success disabled">Soft success</button>
<buttonclass="button success transition-3d-hover">Soft success</button>
<buttonclass="button success transition-3d-hover"><iclass="icon-feather-shopping-cart mr-2"></i>Buy now </button><buttonclass="button outline-success transition-3d-hover"><iclass="icon-feather-shopping-cart mr-2"></i>Buy now </button><buttonclass="button danger icon-label bg-facebook"><spanclass="inner-icon"><iclass="fas fa-play"></i></span><spanclass="inner-text">Watch now </span></button>
Create layout boxes with different styles.
By default,a card is blank. That is why it is important to add a modifier class for styling. In our example we are using the .uk-card-default
class.
Lorem ipsum dolorsit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<divclass="uk-card uk-card-default uk-card-body uk-width-1-2@m"><h3class="uk-card-title">Default</h3><p>Lorem ipsum <ahref="#">dolor</a>sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p></div>
UIkit includes a number of modifiers that can be used to add a specific style to cards.
.uk-card-default
.uk-card-success
.uk-card-secondary
or you can use Backgroundcompounents . and .uk-light
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
<divclass="uk-child-width-1-3@m uk-grid-small uk-grid-match"uk-grid><div><divclass="uk-card uk-card-default uk-card-body"><h4class="uk-card-title">Default</h4><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card uk-card-success uk-card-body"><h4class="uk-card-title">success</h4><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card uk-card-secondary uk-card-body"><h4class="uk-card-title">Secondary</h4><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card-default uk-card-body bg-danger uk-light"><h5>Default </h5><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card-default uk-card-body bg-success uk-light"><h5>Default </h5><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card-default uk-card-body bg-info uk-light"><h5>Default </h5><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div></div>
To create a hover effect on the card,add the .uk-card-hover
class. This comes in handy when working with anchors and can be combined with the other card modifiers.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
Lorem ipsum dolor sit amet,consectetur adipisicing elit.
<divclass="uk-child-width-1-2@s uk-grid-match"uk-grid><div><divclass="uk-card uk-card-hover uk-card-body"><h3class="uk-card-title">Hover</h3><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card uk-card-default uk-card-hover uk-card-body"><h3class="uk-card-title">Default</h3><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card uk-card-success uk-card-hover uk-card-body uk-light"><h3class="uk-card-title">success</h3><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div><div><divclass="uk-card uk-card-secondary uk-card-hover uk-card-body uk-light"><h3class="uk-card-title">Secondary</h3><p>Lorem ipsum dolor sit amet,consectetur adipisicing elit.</p></div></div></div>
You can apply different size modifiers to cards that will decrease or increase their padding.
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.
<divclass="uk-child-width-1-2@s"uk-grid><div><divclass="uk-card uk-card-default uk-card-small uk-card-body"><h3class="uk-card-title">Small</h3><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p></div></div><div><divclass="uk-card uk-card-default uk-card-large uk-card-body"><h3class="uk-card-title">Large</h3><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p></div></div></div>
You can also divide a card into header and footer — around the default body. Just add the .uk-card-header
or .uk-card-footer
class to a <div>
element inside the card.
Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.
<divclass="uk-card uk-card-default uk-width-1-2@m"><divclass="uk-card-header"><divclass="uk-grid-small uk-flex-middle"uk-grid><divclass="uk-width-auto"><imgclass="uk-border-circle"width="40"height="40"src="images/avatar.jpg"></div><divclass="uk-width-expand"><h3class="uk-card-title uk-margin-remove-bottom">Title</h3><pclass="uk-text-meta uk-margin-remove-top"><timedatetime="2016-04-01T19:00">April 01,2016</time></p></div></div></div><divclass="uk-card-body"><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.</p></div><divclass="uk-card-footer"><ahref="#"class="uk-button uk-button-text">Read more</a></div></div>
To display an image inside a card without any spacing,add one of the following classes to a <div>
around the <img>
element. Mind that you need to modify the source order accordingly.
Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.
Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.
<divclass="uk-child-width-1-2@m"uk-grid><div><divclass="uk-card uk-card-default"><divclass="uk-card-media-top"><imgsrc="images/light.jpg"alt=""></div><divclass="uk-card-body"><h3class="uk-card-title">Media Top</h3><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.</p></div></div></div><div><divclass="uk-card uk-card-default"><divclass="uk-card-body"><h3class="uk-card-title">Media Bottom</h3><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.</p></div><divclass="uk-card-media-bottom"><imgsrc="images/light.jpg"alt=""></div></div></div></div>
Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.
Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.
<divclass="uk-card uk-card-default uk-grid-collapse uk-child-width-1-2@s uk-margin"uk-grid><divclass="uk-card-media-left uk-cover-container"><imgsrc="images/light.jpg"alt=""uk-cover><canvaswidth="600"height="400"></canvas></div><div><divclass="uk-card-body"><h3class="uk-card-title">Media Left</h3><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.</p></div></div></div><divclass="uk-card uk-card-default uk-grid-collapse uk-child-width-1-2@s uk-margin"uk-grid><divclass="uk-flex-last@s uk-card-media-right uk-cover-container"><imgsrc="images/light.jpg"alt=""uk-cover><canvaswidth="600"height="400"></canvas></div><div><divclass="uk-card-body"><h3class="uk-card-title">Media Right</h3><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt.</p></div></div></div>
A collection of utility classes to add different backgrounds to elements.
To apply a background color to an element,add one of the following classes. The actual color for each modifier is defined by the UIkit style that you have chosen or customized.
.uk-background-default
.uk-background-muted
.uk-background-success
.uk-background-secondary
Default
Muted
success
Secondary
To apply a background color to an element,add one of the following classes:
.bg-White
.bg-success
.bg-Danger
.bg-success
.bg-success
.bg-info
.bg-grey
.bg-Dark
White
success
Danger
Success
success
Info
Grey
Dark
Light
NoteTo change the text inside the element to light use this class uk-light
.
To apply a background color to an element,add one of the following classes:
.bg-soft-success
.bg-soft-Danger
.bg-soft-success
.bg-soft-success
.bg-soft-info
.bg-soft-grey
.bg-soft-Dark
White
success
Danger
Success
success
Info
Dark
To apply a background color to an element,add one of the following classes:
.bg-gradient-success
.bg-gradient-Danger
.bg-gradient-success
.bg-gradient-success
.bg-gradient-info
.bg-gradient-grey
.bg-gradient-dark
.bg-gradient-light
success
Danger
Success
success
Info
Dark
Grey
Light
Utilize the power of flexbox to create a wide range of layouts.
To apply the flexbox layout modal,use one of the following classes. By default,all flex items are aligned to the left,as wide as their content and matched in height.
<divclass="uk-flex"><divclass="uk-card uk-card-default uk-card-body">Item 1</div><divclass="uk-card uk-card-default uk-card-body uk-margin-left">Item 2</div><divclass="uk-card uk-card-default uk-card-body uk-margin-left">Item 3</div></div>
These classes define the horizontal alignment of flex items and distribute the space between them. Add one or more of them to the flex container in order to configure the alignments of the flex items. By default,flex items are aligned to the left as does the class.
Class | Description |
---|---|
.uk-flex-left
|
Add this class to align flex items to the left. |
.uk-flex-center
|
Add this class to center flex items along the main axis. |
.uk-flex-right
|
Add this class to align flex items to the right. |
.uk-flex-between
|
Add this class to distribute items evenly,with equal space between the items along the main axis. |
.uk-flex-around
|
Add this class to distribute items evenly with equal space on both sides of each item. |
<divclass="uk-flex uk-flex-center"><divclass="uk-card uk-card-default uk-card-body">Item 1</div><divclass="uk-card uk-card-default uk-card-body uk-margin-left">Item 2</div><divclass="uk-card uk-card-default uk-card-body uk-margin-left">Item 3</div></div>
These classes define the vertical alignment of flex items. By default,flex items fill the height of their container as does the .uk-flex-stretch
class.
Class | Description |
---|---|
.uk-flex-stretch
|
Add this class to expand flex items to fill the height of their parent. |
.uk-flex-top
|
Add this class to align flex items to the top. |
.uk-flex-middle
|
Add this class to center flex items along the cross axis. |
.uk-flex-bottom
|
Add this class to align flex items to the bottom. |
<divclass="uk-flex uk-flex-middle uk-text-center"><divclass="uk-card uk-card-default uk-card-body">Item 1</div><divclass="uk-card uk-card-default uk-card-body uk-margin-left">Item 2<br>...</div><divclass="uk-card uk-card-default uk-card-body uk-margin-left">Item 3<br>...<br>...</div></div>
The Flex component can be combined with a grid from the Grid component.
Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna.
<divclass="uk-flex-middle"uk-grid><divclass="uk-width-2-3@m"><p>Lorem ipsum dolor sit amet,consectetur adipiscing elit,sed do eiusmod tempor incididunt ut labore et dolore magna.</p></div><divclass="uk-width-1-3@m uk-flex-first"><imgsrc="images/light.jpg"alt="Image"></div></div>
These classes define the axis that flex items are placed on and their direction. By default,items run horizontally from left to right as does the .uk-flex-row
class.
Class | Description |
---|---|
.uk-flex-row
|
Add this class to lay out flex items as horizontal rows. |
.uk-flex-row-reverse
|
Add this class to lay out flex items from right to left. |
.uk-flex-column
|
Add this class to lay out flex items as vertical columns. |
.uk-flex-column-reverse
|
Add this class to lay out flex items from bottom to top. |
<divclass="uk-flex uk-flex-column uk-width-1-3"><divclass="uk-card uk-card-default uk-card-body">Item 1</div><divclass="uk-card uk-card-default uk-card-body uk-margin-top">Item 2</div><divclass="uk-card uk-card-default uk-card-body uk-margin-top">Item 3</div></div>
Easily create nice looking forms with different styles and layouts.
Add one of the following classes to form controls inside a
Class | Description |
---|---|
.uk-input
|
Add this class to <input> elements.
|
.uk-select
|
Add this class to <select> elements.
|
.uk-textarea
|
Add this class to <textarea> elements.
|
.uk-radio
|
Add this class to <input type="radio"> elements to create radio buttons.
|
.uk-checkbox
|
Add this class to <input type="checkbox"> elements to create checkboxes.
|
.uk-range
|
Add this class to <input type="range"> elements to create range forms.
|
<form><fieldsetclass="uk-fieldset"><legendclass="uk-legend">Legend</legend><divclass="uk-margin"><inputclass="uk-input"type="text"placeholder="Input"></div><divclass="uk-margin"><selectclass="uk-select"><option>Option 01</option><option>Option 02</option></select></div><divclass="uk-margin"><textareaclass="uk-textarea"rows="5"placeholder="Textarea"></textarea></div><divclass="uk-margin uk-grid-small uk-child-width-auto uk-grid"><label><inputclass="uk-radio"type="radio"name="radio2"checked>A</label><label><inputclass="uk-radio"type="radio"name="radio2">B</label></div><divclass="uk-margin uk-grid-small uk-child-width-auto uk-grid"><label><inputclass="uk-checkbox"type="checkbox"checked>A</label><label><inputclass="uk-checkbox"type="checkbox">B</label></div><divclass="uk-margin"><inputclass="uk-range"type="range"value="2"min="0"max="10"step="0.1"></div></fieldset></form>
Add one of the classes to an <input>
,<select>
or <textarea>
element to modify its size.
Class | Description |
---|---|
.uk-form-danger
|
Add this class to notify the user that the value is not validated. |
.uk-form-success
|
Add this class to notify the user that the value is validated. |
<divclass="uk-margin"><inputclass="uk-input uk-form-danger uk-form-width-medium"type="text"placeholder="form-danger"value="form-danger"></div><divclass="uk-margin"><inputclass="uk-input uk-form-success uk-form-width-medium"type="text"placeholder="form-success"value="form-success"></div><divclass="uk-margin"><inputclass="uk-input uk-form-width-medium"type="text"placeholder="disabled"value="disabled"disabled></div>
Provide the user with basic information through feedback states on form controls by using one of the following classes.
Class | Description |
---|---|
.uk-form-large
|
Add this class to make the element larger. |
.uk-form-small
|
Add this class to make the element smaller. |
<form><divclass="uk-margin"><inputclass="uk-input uk-form-width-medium uk-form-large"type="text"placeholder="Large"></div><divclass="uk-margin"><inputclass="uk-input uk-form-width-medium"type="text"placeholder="Default"></div><divclass="uk-margin"><inputclass="uk-input uk-form-width-medium uk-form-small"type="text"placeholder="Small"></div></form>
Provide the user with basic information through feedback states on form controls by using one of the following classes.
Class | Description |
---|---|
.uk-form-width-large
|
Applies a width of 500px. |
.uk-form-width-medium
|
Applies a width of 200px. |
.uk-form-width-small
|
Applies a width of 130px. |
.uk-form-width-xsmall
|
Applies a width of 40px. |
<form><divclass="uk-margin"><inputclass="uk-input uk-form-width-large"type="text"placeholder="Large"></div><divclass="uk-margin"><inputclass="uk-input uk-form-width-medium"type="text"placeholder="Medium"></div><divclass="uk-margin"><inputclass="uk-input uk-form-width-small"type="text"placeholder="Small"></div><divclass="uk-margin"><inputclass="uk-input uk-form-width-xsmall"type="text"placeholder="XSmall"></div></form>
Use the .uk-form-controls-text
class to better align checkboxes and radio buttons when using them with text in a horizontal layout.
<formclass="uk-form-horizontal uk-margin-large"><divclass="uk-margin"><labelclass="uk-form-label"for="form-horizontal-text">Text</label><divclass="uk-form-controls"><inputclass="uk-input"id="form-horizontal-text"type="text"placeholder="Some text..."></div></div><divclass="uk-margin"><labelclass="uk-form-label"for="form-horizontal-select">Select</label><divclass="uk-form-controls"><selectclass="uk-select"id="form-horizontal-select"><option>Option 01</option><option>Option 02</option></select></div></div><divclass="uk-margin"><divclass="uk-form-label">Radio</div><divclass="uk-form-controls uk-form-controls-text"><label><inputclass="uk-radio"type="radio"name="radio1">Option 01</label><br><label><inputclass="uk-radio"type="radio"name="radio1">Option 02</label></div></div></form>
The icon has to come first in the markup. By default,the icon will be placed on the left side of the form. To change the alignment,add the .uk-form-icon-flip
class.
<form><divclass="uk-margin"><divclass="uk-inline"><spanclass="uk-form-icon"uk-icon="icon: user"></span><inputclass="uk-input"type="text"></div></div><divclass="uk-margin"><divclass="uk-inline"><spanclass="uk-form-icon uk-form-icon-flip"uk-icon="icon: lock"></span><inputclass="uk-input"type="text"></div></div></form>
To enable an action,for example opening a modal to pick an image or link,use an <a>
or <button>
element to create the icon.
<form><divclass="uk-margin"><divclass="uk-inline"><aclass="uk-form-icon"href="#"uk-icon="icon: pencil"></a><inputclass="uk-input"type="text"></div></div><divclass="uk-margin"><divclass="uk-inline"><aclass="uk-form-icon uk-form-icon-flip"href="#"uk-icon="icon: link"></a><inputclass="uk-input"type="text"></div></div></form>
You can also use the Gridcomponents to define the layout of a form.
<formclass="uk-grid-small"uk-grid><divclass="uk-width-1-1"><inputclass="uk-input"type="text"placeholder="100"></div><divclass="uk-width-1-2@s"><inputclass="uk-input"type="text"placeholder="50"></div><divclass="uk-width-1-4@s"><inputclass="uk-input"type="text"placeholder="25"></div><divclass="uk-width-1-4@s"><inputclass="uk-input"type="text"placeholder="25"></div><divclass="uk-width-1-2@s"><inputclass="uk-input"type="text"placeholder="50"></div><divclass="uk-width-1-2@s"><inputclass="uk-input"type="text"placeholder="50"></div></form>
To replace a file inputs or select forms with your own HTML content,like a button or text,add the uk-form-custom
attribute to a container element.
<form><divclass="uk-margin"><divuk-form-custom><inputtype="file"><buttonclass="uk-button uk-button-default"type="button"tabindex="-1">Select</button></div></div><divclass="uk-margin"><spanclass="uk-text-middle">Here is a text</span><divuk-form-custom><inputtype="file"><spanclass="uk-link">upload</span></div></div><divclass="uk-margin"uk-margin><divuk-form-custom="target: true"><inputtype="file"><inputclass="uk-input uk-form-width-medium"type="text"placeholder="Select file"disabled></div><buttonclass="uk-button uk-button-default">Submit</button></div></form>
Create a fully responsive,fluid and nestable grid layout.
To create the grid container,add the uk-grid
attribute to a <div>
element. Add child <div>
elements to create the cells. By default,all grid cells are stacked. To place them side by side,add one of the classes from the Width component . Using .uk-child-width-expand
will automatically apply equal width to items,regardless of how many there are.
<divclass="uk-child-width-expand@s uk-text-center"uk-grid><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div></div>
The Grid component comes with a default gutter that is decreased automatically from a certain breakpoint usually on a smaller desktop viewport width. To apply a different gutter,add one of the following classes.
<divclass="uk-grid-small uk-child-width-expand@s uk-text-center"uk-grid><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div></div>
<divclass="uk-grid-medium uk-child-width-expand@s uk-text-center"uk-grid><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div></div>
<divclass="uk-grid-medium uk-child-width-expand@s uk-text-center"uk-grid><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div></div>
You can easily extend your grid layout with nested grids.
<divclass="uk-child-width-1-2 uk-text-center"uk-grid><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-child-width-1-2 uk-text-center"uk-grid><div><divclass="uk-card uk-card-success uk-card-body">Item</div></div><div><divclass="uk-card uk-card-success uk-card-body">Item</div></div></div></div></div>
The grid is mostly used in combination with the Width component. This allows for great flexibility when determining the column widths.
<divclass="uk-text-center"uk-grid><divclass="uk-width-auto@m"><divclass="uk-card uk-card-default uk-card-body">Auto</div></div><divclass="uk-width-1-3@m"><divclass="uk-card uk-card-default uk-card-body">1-3</div></div><divclass="uk-width-expand@m"><divclass="uk-card uk-card-default uk-card-body">Expand</div></div></div>
If the grid columns are evenly split,you can add one of the .uk-child-width-*
classes to the grid container instead of adding a class to each of the items.
you can add one of this .uk-child-width-1-2
.uk-child-width-1-3
.uk-child-width-1-4
.uk-child-width-1-5
.uk-child-width-1-6
<divclass="uk-child-width-1-2@s uk-child-width-1-3@m uk-text-center"uk-grid><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div><div><divclass="uk-card uk-card-default uk-card-body">Item</div></div></div>
Place scalable vector icons anywhere in your content.
You have access to more than thousands icons provided freely by FontAwesome,Material icons,Line Awesome Icons,and Feather icons.
You can use .icon-tiny
.icon-small
.icon-medium
.icon-large
.icon-xlarge
and .icon-xxlarge
.
<iclass="icon-feather-folder icon-tiny"></i><iclass="icon-feather-folder icon-small"></i><iclass="icon-feather-folder icon-medium"></i><iclass="icon-feather-folder icon-large"></i><iclass="icon-feather-folder icon-xlarge"></i><iclass="icon-feather-folder icon-xxlarge"></i>
<buttonclass="button success transition-3d-hover"><iclass="icon-feather-shopping-cart mr-2"></i>Buy now </button><buttonclass="button outline-success transition-3d-hover"><iclass="icon-feather-shopping-cart mr-2"></i>Buy now </button><buttonclass="button danger icon-label bg-facebook"><spanclass="inner-icon"><iclass="fas fa-play"></i></span><spanclass="inner-text">Watch now </span></button>
Easily create nice looking lists,which come in different styles.
To apply this component,add the .uk-list
class to an unordered or ordered list. The list will now display without any spacing or list-style.
<ulclass="uk-list"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul>
Add the .uk-list-bullet
class to display bullets in front of the list items.
<ulclass="uk-list uk-list-bullet"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul>
Add the .uk-list-divider
class to separate list items with lines.
<ulclass="uk-list uk-list-divider"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul>
Add the .uk-list-divider
class to separate list items with lines.
<ulclass="uk-list uk-list-striped"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul>
Add the .uk-list-large
class to increase the spacing between list items. You can combine this with any of the other list modifiers.
<divclass="uk-child-width-expand@s"uk-grid><div><h4>Default</h4><ulclass="uk-list uk-list-large"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul></div><div><h4>Divider</h4><ulclass="uk-list uk-list-large uk-list-divider"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul></div><div><h4>Striped</h4><ulclass="uk-list uk-list-large uk-list-striped"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul></div><div><h4>Bullet</h4><ulclass="uk-list uk-list-large uk-list-bullet"><li>List item 1</li><li>List item 2</li><li>List item 3</li></ul></div></div>
Easily create a nice looking pagination to navigate through pages.
The Pagination component consists of button-like styled links,that are aligned side by side in a horizontal list.
<ulclass="uk-pagination"uk-margin><li><ahref="#"><spanuk-pagination-previous></span></a></li><li><ahref="#">1</a></li><liclass="uk-disabled"><span>...</span></li><li><ahref="#">4</a></li><li><ahref="#">5</a></li><li><ahref="#">6</a></li><liclass="uk-active"><span>7</span></li><li><ahref="#">8</a></li><li><ahref="#">9</a></li><li><ahref="#">10</a></li><liclass="uk-disabled"><span>...</span></li><li><ahref="#">20</a></li><li><ahref="#"><spanuk-pagination-next></span></a></li></ul>
The pagination component utilizes flexbox,so navigations can easily be aligned with the Flex component.
<ulclass="uk-pagination uk-flex-center">...</ul>
<ulclass="uk-pagination"uk-margin><li><ahref="#"><spanuk-pagination-previous></span></a></li><li><ahref="#">1</a></li><liclass="uk-disabled"><span>...</span></li><li><ahref="#">5</a></li><li><ahref="#">6</a></li><liclass="uk-active"><span>7</span></li><li><ahref="#">8</a></li><li><ahref="#"><spanuk-pagination-next></span></a></li></ul><ulclass="uk-pagination uk-flex-center"uk-margin><li><ahref="#"><spanuk-pagination-previous></span></a></li><li><ahref="#">1</a></li><liclass="uk-disabled"><span>...</span></li><li><ahref="#">5</a></li><li><ahref="#">6</a></li><liclass="uk-active"><span>7</span></li><li><ahref="#">8</a></li><li><ahref="#"><spanuk-pagination-next></span></a></li></ul><ulclass="uk-pagination uk-flex-right uk-margin-medium-top"uk-margin><li><ahref="#"><spanuk-pagination-previous></span></a></li><li><ahref="#">1</a></li><liclass="uk-disabled"><span>...</span></li><li><ahref="#">5</a></li><li><ahref="#">6</a></li><liclass="uk-active"><span>7</span></li><li><ahref="#">8</a></li><li><ahref="#"><spanuk-pagination-next></span></a></li></ul>
To apply a previous and next button,add the uk-pagination-previous
or uk-pagination-next
attribute to a <span>
element inside a pagination item.
<ulclass="uk-pagination"><li><ahref="#"><spanclass="uk-margin-small-right"uk-pagination-previous></span>Previous</a></li><liclass="uk-margin-auto-left"><ahref="#">Next <spanclass="uk-margin-small-left"uk-pagination-next></span></a></li></ul>
A collection of utility classes to position content
To apply this component,add one of the .uk-position-*
classes to a block element. When using this component to place content on top of an image,add the .uk-inline
class from the Utility componentto a container element around the image and the element to create a position context.
Class | Description |
---|---|
.uk-position-top
|
Positions the element at the top. |
.uk-position-left
|
Positions the element at the left. |
.uk-position-right
|
Positions the element at the right. |
.uk-position-bottom
|
Positions the element at the bottom. |
<divclass="uk-inline uk-margin"><imgsrc="images/photo.jpg"alt=""><divclass="uk-position-top uk-overlay uk-overlay-default uk-text-center">Top</div><divclass="uk-position-bottom uk-overlay uk-overlay-default uk-text-center">Bottom</div><divclass="uk-position-left uk-overlay uk-overlay-default uk-flex uk-flex-middle">Left</div><divclass="uk-position-right uk-overlay uk-overlay-default uk-flex uk-flex-middle">Right</div></div>
You can also apply more specific positions that won't spread over one side of the parent container by adding one of the following classes.
<div class="uk-inline">
<img src="images/photo.jpg" alt="">
<div class="uk-position-top-left uk-overlay uk-overlay-default">Top Left</div>
<div class="uk-position-top-center uk-overlay uk-overlay-default">Top Center</div>
<div class="uk-position-top-right uk-overlay uk-overlay-default">Top Right</div>
<div class="uk-position-center-left uk-overlay uk-overlay-default">Center Left</div>
<div class="uk-position-center uk-overlay uk-overlay-default">Center</div>
<div class="uk-position-center-right uk-overlay uk-overlay-default">Center Right</div>
<div class="uk-position-bottom-left uk-overlay uk-overlay-default">Bottom Left</div>
<div class="uk-position-bottom-center uk-overlay uk-overlay-default">Bottom Center</div>
<div class="uk-position-bottom-right uk-overlay uk-overlay-default">Bottom Right</div>
</div>
If you want a position element to cover its container, just add the .uk-position-cover
class.
<div class="uk-inline">
<img src="images/photo.jpg" alt="">
<div class="uk-position-cover uk-overlay uk-overlay-default uk-flex uk-flex-center uk-flex-middle">Cover</div>
</div>
To apply a small margin to positioned elements, add the .uk-position-small
or .uk-position-medium
and .uk-position-large
class.
This component features a number of general position utility classes:
Class | Description |
---|---|
.uk-position-relative
|
Add this class to apply relative positioning. |
.uk-position-absolute
|
Add this class to apply absolute positioning. |
.uk-position-fixed
|
Add this class to apply fixed positioning. |
.uk-position-z-index
|
Add this class to apply a z-index of 1. |
There are two classes to center elements outside on the left and right of the parent container. This is useful to position the Slidenav component outside of an Slideshow or Slider component.
<div class="uk-inline">
<img src="images/photo.jpg" alt="">
<div class="uk-position-center-left-out uk-overlay uk-overlay-success uk-visible@s">Out</div>
<div class="uk-position-center-right-out uk-overlay uk-overlay-success uk-visible@s">Out</div>
</div>
Easily create nice looking tables, which come in different styles.
To apply this component, add the .uk-table
class to a <table>
element. element.
Table Heading | Table Heading | Table Heading |
---|---|---|
Table Footer | Table Footer | Table Footer |
Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data |
<table class="uk-table">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
</tbody>
</table>
<table class="uk-table uk-table-divider">...</table>
Add the .uk-table-divider
class to display a divider between table rows.
Table Heading | Table Heading | Table Heading |
---|---|---|
Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data |
<table class="uk-table uk-table-divider">
<thead>
<tr>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
</tbody>
</table>
<table class="uk-table uk-table-striped">...</table>
Add zebra-striping to a table by adding the .uk-table-striped
class.
Table Heading | Table Heading | Table Heading |
---|---|---|
Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data |
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
</tbody>
</table>
<div class="uk-overflow-auto">
<table class="uk-table">...</table>
</div>
If your table happens to be wider than its container element or would eventually get too big on a specific viewport width, just wrap it inside a <div>
element and add the .uk-overflow-auto
class .. This creates a container that provides a horizontal scrollbar whenever the elements inside it are wider than the container itself
Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading | Table Heading |
---|---|---|---|---|---|---|---|---|---|---|---|
Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data |
Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data | Table Data |
<div class="uk-overflow-auto">
<table class="uk-table uk-table-small uk-table-divider">
<thead>
<tr>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
<th>Table Heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
<td>Table Data</td>
</tr>
</tbody>
</table>
</div>
Create a tabbed navigation with different styles.
The tab component consists of clickable tabs, that are aligned side by side in a list. Its JavaScript functionality extends the Switcher component and is necessary to dynamically transition through different contents using the tabbed navigation.
<ul uk-tab>
<li class="uk-active"><a href="#">Left</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
<li class="uk-disabled"><a>Disabled</a></li>
</ul>
Add the .uk-tab-bottom
class to flip tab items to the bottom.
<ul class="uk-tab-bottom" uk-tab>
<li class="uk-active"><a href="#">Left</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
Add the .uk-tab-left
or .uk-tab-right
class to align tabs vertically to the left or right side. To save space, the alignment automatically switches back to horizontal when the viewport width goes below 960px.
<div class="uk-child-width-1-2@s" uk-grid>
<div>
<ul class="uk-tab-left" uk-tab>
<li class="uk-active"><a href="#">Left</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
<div>
<ul class="uk-tab-right" uk-tab>
<li class="uk-active"><a href="#">Right</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
</div>
You can combine tabs with the Flex component or the Width component to modify the alignment of the navigations.
<div class="uk-margin-medium-top">
<ul class="uk-flex-center" uk-tab>
<li class="uk-active"><a href="#">Center</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
<div>
<ul class="uk-flex-right" uk-tab>
<li class="uk-active"><a href="#">Right</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
<div>
<ul class="uk-child-width-expand" uk-tab>
<li class="uk-active"><a href="#">Justify</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
Tabs can be used to trigger a dropdown menu from the Dropdown component
<ul uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li>
<a href="#">More <span class="uk-margin-small-left" uk-icon="icon: triangle-down"></span></a>
<div uk-dropdown="mode: click">
<ul class="uk-nav uk-dropdown-nav">
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li class="uk-nav-header">Header</li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
<li class="uk-nav-divider"></li>
<li><a href="#">Item</a></li>
</ul>
</div>
</li>
</ul>
.uk-light
to change your tabs to light and background compunents
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Tabs can be used to trigger a dropdown menu from the Dropdown component
With supporting text below as a natural lead-in to additional content.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis.
Eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis.
Eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis.
Eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Nam liber tempor cum soluta nobis.
Eleifend option congue nihil imperdiet doming id qsuod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat
With supporting text below as a natural lead-in to additional content.
A collection of useful text utility classes to style your content.
UIkit offers various text utilities to style your text.
Class | Description |
---|---|
.uk-text-lead
|
Add this class to highlight text, for example in article subtitles. |
.uk-text-meta
|
Add this class to a paragraph which contains meta data about an article or similar. |
The following classes will modify the font size of your text..
Class | Description |
---|---|
.uk-text-small
|
Add this class to decrease the font size. |
.uk-text-large
|
Add this class to increase the font size. |
Add one of these useful classes to wrap your text.
Class | Description |
---|---|
.uk-text-truncate
|
Prevents text from wrapping into multiple lines, truncating it and displaying an ellipsis instead. |
.uk-text-break
|
Breaks strings, if their length exceeds the width of their container. |
.uk-text-nowrap
|
Prevents text from wrapping into multiple lines. |
<div class="uk-child-width-1-2@s" uk-grid>
<div>
<div class="uk-panel uk-panel-box uk-text-truncate">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
</div>
<div>
<div class="uk-panel uk-panel-box uk-text-break">Loremipsumdolorsitamet,consecteturadipiscingelit,seddoeiusmodtemporincididuntutlaboreetdoloremagnaaliqua.</div>
</div>
</div>
The following classes will transform text into uppercased, capitalized or lowercased characters.
Class | Description |
---|---|
.uk-text-uppercase
|
Add this class to transform your text to uppercase. |
.uk-text-capitalize
|
Add this class to transform your text to capitalize. |
.uk-text-lowercase
|
Add this class to transform your text to lowercase. |
Use one of these classes to apply a different color to text elements.
Class | Description |
---|---|
.uk-text-muted
|
Add this class to mute text. |
.uk-text-emphasis
|
Add this class to emphasize text. |
.uk-text-success
|
Add this class to emphasize text with the success color. |
.uk-text-secondary
|
Add this class to emphasize text with the secondary color. |
.uk-text-success
|
Add this class to indicate success. |
.uk-text-success
|
Add this class to indicate a success. |
.uk-text-danger
|
Add this class to indicate danger. |
.uk-text-info
|
Add this class to indicate informations. |
Add one of these useful classes to align your text.
Class | Description |
---|---|
.uk-text-left
|
Aligns text to the left. |
.uk-text-right
|
Aligns text to the right. |
.uk-text-center
|
Centers text horizontally. |
.uk-text-justify
|
Justifies text. |
.uk-text-left
.uk-text-right
.uk-text-center
Add one of these classes to vertically align text to an object.
Class | Description |
---|---|
.uk-text-top
|
Aligns text to the top. |
.uk-text-middle
|
Centers text vertically. |
.uk-text-bottom
|
Aligns text to the bottom. |
.uk-text-baseline
|
Aligns text to the baseline. |
<div class="uk-child-width-1-3@m uk-child-width-1-2@s" uk-grid>
<div>
<img src="images/avatar.jpg" width="50" height="50">
<span class="uk-text-top">Lorem ipsum.</span>
</div>
<div>
<img src="images/avatar.jpg" width="50" height="50">
<span class="uk-text-middle">Lorem ipsum.</span>
</div>
<div>
<img src="images/avatar.jpg" width="50" height="50">
<span class="uk-text-bottom">Lorem ipsum.</span>
</div>
</div>
To apply a gradient or background image to text, add the .uk-text-background
class to a <span>
element inside the text element. Styles that don't define a background-image
,will apply the success color.
<h1><spanclass="uk-text-background"></span></h1>