# Layout

Layouts is important for uimini works correct.

# Introduction

Uimini provided classes for correct work with others frameworks.

This approach makes it easy to change or combine different frameworks in an application or a website.

# Responsive meta tag

Uimini is developed mobile first. We optimize code for mobile devices first and then scale up components as necessary using CSS media queries.

Add the responsive viewport meta tag to your <head> to ensure proper rendering and touch zooming for all devices:

<head>
  <!-- ... -->
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <!-- ... -->
</head>

# Html class

First required class is ui-html.

Using for control main sizes, fonts and layout.

Example:

<html class="ui-html" lang="en">
  <!-- content -->
</html>

# Body class

Second required class is ui-body.

Using for create colors and themes.

Example:

<body class="ui-body">
  <!-- content -->
</body>

# Optionals classes

Other optionals classes for make view of the page better:

  • ui-wrapper - use for main content for make heder in the top and footer on the bottom;
  • ui-content-wrapper - use for make content on the center between header and footer.

# Default layout

Be sure you put main classes: ui-html and ui-body in your template to have your pages set up with the latest design and development standards.

Put it all together and your pages should look like this:

Header
Content
Footer
<!DOCTYPE html>
<html class="ui-html" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <!-- cdn link -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uimini@2.0.8/dist/uimini.min.css" integrity="sha256-h8u2/mt0aoFKmyVNtIVA0u65MdOePGkIhenx9fW6n9E=" crossorigin="anonymous">

    <title>Hello world!</title>
  </head>

  <body class="ui-body">
    <div class="ui-wrapper">

      <!-- header -->
      <header>header</header>

      <div class="ui-content-wrapper">
        <!-- page content -->
        <section class="ui-section">
          <div class="ui-container">
            <h1 class="ui-title-1">Hello world!</h1>
          </div>
        </section>
      </div>

      <!-- footer -->
      <footer>footer</footer>
    </div>
  </body>
</html>

# Section

Sections for make space between blocks on the page. Use: ui-section for div or section tag.

Example section #1

Example section #2
<section class="ui-section">
  <div class="ui-container">Example section #1</div>
</section>

<section class="ui-section">
  <div class="ui-container">Example section #2</div>
</section>

# Container

Containers are a fundamental building block. For contain, pad, and align your content within a given viewport or device.

container view

<div class="ui-container">
  <p>container view</p>
</div>