UIkit List


UIkit List– Class uk-list is used to create the beautiful list in Uikit framework. Add class uk-list to create basic list with simple style. Here in this tutorial, we are going to explain how you can create lists in UIkit css framework.


UIkit List Example

Let us create very first simple list-

Example:

<ul class="uk-list">
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
</ul>

Try it »

If you run the above example it will produce output something like this-

Uikit lists

Bullet Modifier

To create bullet list items add class uk-list-bullet. Here is an example.

Example:

<ul class="uk-list uk-list-bullet">
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ul>

Try it »

If you run the above example it will produce the output something like this-

uikit bullet list

Divider Modifier

Add class uk-list-divider to create separator between list items.

Example:

<ul class="uk-list uk-list-divider">
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ul>

Try it »

Striped Modifier

Add class uk-list-striped to create striped modifiers.

Example:

<ul class="uk-list uk-list-striped">
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ul>

Try it »

Uikit striped lists

Large Modifier

Add class uk-list-large to increase the gaps between the list items.

Example:

<ul class="uk-list uk-list-large">
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ul>

Try it »

If you run the above example it will produce output something like this-

Uikit large list items

Advertisements

Add Comment

📖 Read More