Shell Grid

shell-grid creates a layout with a header, left sidebar, main content area, and right sidebar. The main content expands to fill available space, and the sidebars’ width are adjustable.


Create websites with left and right sidebars easily

Just use shell-grid along with left-sidebar, content, and right-sidebar classes to create your layout.

index.html
<div class="shell-grid">
<header>Header</header>
<aside class="left-sidebar">Left Sidebar</aside>
<main class="content">Content</main>
<aside class="right-sidebar">Right Sidebar</aside>
</div>
Header
Content

Optional Header and Right Sidebar

Omit header and right-sidebar elements to create a layout with just the left-sidebar and content.

index.html
<div class="shell-grid">
<aside class="left-sidebar">Left Sidebar</aside>
<main class="content">Content</main>
</div>
Content

Automatic Scrollbars for Content and Sidebars

left-sidebar, content, and right-sidebar containers automatically add scrollbars when their contents exceed the container height.

Paragraph 1
Paragraph 2
Paragraph 3
Paragraph 4
Paragraph 5
Paragraph 6
Paragraph 7
Paragraph 8
Paragraph 9
Paragraph 10
Paragraph 11
Paragraph 12
Paragraph 13
Paragraph 14
Paragraph 15
Paragraph 16
Paragraph 17
Paragraph 18
Paragraph 19
Paragraph 20

Easy Responsive Behaviour

Create a mobile-friendly layout using our Drawer component and Tailwind’s responsive variants.

Resize this demo to see the mobile layout in action!

Resize to see this work!
Header
Paragraph 1
Paragraph 2
Paragraph 3
Paragraph 4
Paragraph 5
Paragraph 6
Paragraph 7
Paragraph 8
Paragraph 9
Paragraph 10
Paragraph 11
Paragraph 12
Paragraph 13
Paragraph 14
Paragraph 15
Paragraph 16
Paragraph 17
Paragraph 18
Paragraph 19
Paragraph 20
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11
Item 12
Item 13
Item 14
Item 15
Item 16
Item 17
Item 18
Item 19
Item 20