Tutorialsplane

UIkit Section


UIkit Section– UIkit provides css classes to create horizontal layout sections with different styles. It is very simple to create sections in UIkit.


UIkit Section Example

Sections are basically used to separate the page in different-different blocks. To create a section you just need to add class .uk-section. Here is simple example of section.

By default sections are blank so we need to add class .uk-section-muted. Let us create a simple container.

UIkit Sections Example:

<div class="uk-section">
    <div class="uk-container">
    <h3>My section</h3>
    </div>
</div>

Try it »

Style Modifiers

You can add following modifiers to change the style of modifiers.

Example

Modifier Example:

<div class="uk-section uk-section-primary">
   <div class="uk-container"><h1>Primary Section..</h1></div>
</div>

Try it »

Size Modifier

Following size modifiers are available in UIkit css framework.

Overlap Modifier

Add class .uk-section-overlap to add border image and negative offset overlap.

<div class="uk-section uk-section-overlap"></div>

Uikit Tutorial

Component