Your complete guide to creating CSS Grid layouts visually
Gridlock Holmes helps you create CSS Grid layouts visually. Just three simple steps:
Start with a pre-built layout or create from scratch
Two Columns - Sidebar + content
Three Columns - Equal width layout
Holy Grail - Classic web layout
Dashboard - Sidebar + widgets
Masonry - Pinterest-style grid
Card Grid - Equal cards layout
Magazine - Featured + sidebar
App Shell - Header/content/footer
Split Screen - 50/50 layout
...and more!
Watch your grid update in real-time as you make changes
Define how many columns and how wide each should be:
200px = Fixed width column1fr = Flexible column (takes available space)auto = Fits content sizeâ ī¸ Important: Use SPACES between values, not commas!
â
Correct: 200px 1fr auto
â Wrong: 200px, 1fr, auto
Define how many rows and how tall each should be:
auto = Height adjusts to content (most common)100px = Fixed height1fr = Takes available vertical spaceControl the spacing between grid items (0-100px). The gap appears between items but not around the outside edges.
See your grid update instantly as you adjust controls
Get production-ready code in multiple formats
Standard CSS code that works everywhere
.container {
display: grid;
grid-template-columns: 200px 1fr 200px;
gap: 20px;
}
Utility classes for Tailwind projects
<div class="grid grid-cols-[200px_1fr_200px] gap-5">
Apply grid styles with JavaScript
container.style.gridTemplateColumns = '200px 1fr 200px';
Sass/SCSS with variables
$sidebar: 200px;
grid-template-columns: $sidebar 1fr $sidebar;
đ Copy Code
Click the "Copy Code" button to copy to your clipboard, then paste into your project
đ Share Layout
Click "Share Layout" to generate a shareable link to your grid configuration
Catch CSS Grid errors before they cause problems
How to use: Scroll to the "Grid Detective" section, paste your CSS code, and click "Analyze Code" to check for errors!
â¨ī¸ Keyboard Shortcuts
Ctrl/Cmd + S - Save layout
Ctrl/Cmd + K - Copy code
Esc - Close modals
đ¯ Best Practices
âĸ Start with a template, then customize
âĸ Use fr units for flexible columns
âĸ Use auto for rows in most cases
đ Quick Actions
âĸ Save favorite layouts for reuse
âĸ Toggle Grid/Info view with checkboxes
âĸ Experiment fearlessly - can't break anything!
đą Mobile Users
âĸ Tap buttons instead of keyboard shortcuts
âĸ Scroll within each section
âĸ Works great on tablets and phones!
"fr" stands for "fraction". 1fr means "one fraction of the available space".
If you have 1fr 2fr, the second column will be twice as wide as the first.
CSS Grid uses spaces to separate column/row sizes. Commas are only used for
advanced features (named grid lines). Always use spaces: 200px 1fr auto
Use fr units instead of fixed pixel widths. Or use the "Auto-Responsive Columns"
feature (coming in Pro) for grids that automatically wrap based on screen size.
Yes! Type a name in the "Layout name" field and click "Save". Your layouts are saved in your browser's local storage. Click "Load" to access them later.
Yes! The core tool is 100% free forever. We're developing Pro features (advanced templates, named grid areas, etc.) which will be optional upgrades, but the main generator will always be free.
Start creating CSS Grid layouts visually - no signup required!
đ Open Gridlock Holmes GeneratorAdvertisement
đĸ Ad Space - How to Use Page
Replace this entire div with your AdSense code after approval
Recommended: Display ad (responsive) or In-article ad