Clone on GitHub
chevron_forward

Layout Overview

First Published On:
April 23, 2024
Last Updated:
July 21, 2024

Figure 1. Animation demonstrating state layer implementation.

No items found.

Overview

Layout refers to the arrangement of elements on a page. In this section, we'll learn about layout by walking through building this example blog page using the default LiftKit theme.

We’ll start with a blank screen. Assume there’s boilerplate HTML in there that renders a blank page.

Next, let’s drop in a section.

Sections set padding, but they don’t control content width.

So if you don’t set some kind of max-width control, things may look too far apart on large screens.

That's why we use containers. Containers control content width.

Nesting our content in a container ensures it doesn’t get too wide. If you need full screen, though, you can always get it with .container__widest.

Layout within the container is controlled case-by-case. You can use grids, flex boxes, or simple blocks.

Returning to our example, you can see how the structure of the page looks when we overlay the annotations.

Recommended Usage

Customization

Resources that mention this topic

No items found.
info

Get Help from a LiftKit Expert

arrow_forward
Book Quick Chat

Give Us Feedback

Click or tap to reveal form.
expand_more
check_circle
Success! An email has been sent to you with more details.
Please allow up to 5 minutes for it to arrive. Mailchimp can take a bit.
error
Error: Something went wrong. Email info@chainlift.io directly for assistance.
content_copy
code snippets will appear here