3.6 ยท Layout

Sidebar + Content.

The universal web app layout. Fixed left nav, scrolling content area. Every dashboard you've ever used.

What it is

A persistent navigation panel on the left side of the screen, with the main working area on the right. This is the universal layout for web applications, dashboards, and admin interfaces. The sidebar stays fixed as the main content area scrolls.

How it works

The outer container uses display: flex or CSS Grid with two columns: a fixed-width sidebar (240โ€“280px) and a flex-1 content area. The sidebar gets position: sticky; top: 0 with height: 100vh. The sidebar contains the logo at top, navigation links in the middle (with icons), and user profile at the bottom. The content area has its own internal scrolling.

Live demo

Sidebar stays fixed. Scroll the right content area.

Live

Dashboard

Export + New project
Users
12,408
+8.2% vs last week
Revenue
$84.2k
+12.6%
Orders
1,927
โˆ’2.1%
Growth
24%
+1.4%
Customer
Plan
MRR
Status
NL
Northwind Labs
Team
$640
Active
โ†’
AG
Argent Group
Pro
$320
Active
โ†’
SB
Salt & Bone
Pro
$320
Pending
โ†’
QU
Quill
Solo
$24
Active
โ†’
FC
Field Co.
Team
$640
Failed
โ†’
OB
Obys Studio
Pro
$320
Active
โ†’
RS
Resn
Enterprise
$2,400
Active
โ†’

Copy this prompt

Prompt ยท 3.6 Sidebar + Content
Build a SaaS dashboard layout with a sidebar + content structure. Sidebar: 240px wide, dark background (#111827), fixed to left side, height:100vh. Contains: logo at top, navigation links with icons (Dashboard, Analytics, Projects, Settings, Team) with active state highlighted in blue, and user avatar + name at bottom. Main content area: flex-1, light gray background (#F9FAFB), has a top header bar with page title and action buttons. Content below shows: 4 stat cards in a row (Users, Revenue, Orders, Growth), then a data table. On mobile, sidebar collapses behind a hamburger menu.

Example sites to study