Shell Simple

Shell-simple is used to create a simple vertical layouts where Content expands to fill all available space. In doing so, Content allows the Footer to stick to the bottom of the page.

This is what you’ll want in most website layouts.


Content that fills up available space

In Shell-simple, Content expands to fill up any available space, allowing the Footer to stick to the bottom.

index.html
<div class="Shell-grid">
<main class="Content">Content</main>
<footer class="Footer">Footer</footer>
</div>
Content

Add other sections as needed

You can insert sections above Content or between Content and Footer. The height of Content will adjust automatically.

index.html
<div class="Shell-simple">
<header>Header</header>
<main class="Content">Content</main>
<div>Something Else</div>
<footer class="Footer">Footer</footer>
</div>
Header
Content
Something Else

Scrolls as you would expect

If there’s not enough space for Content to expand, it will retain it’s original height. The container will also be scrollable as you would expect it to be.

Header
Something Else
Something Else
Something Else
Content