Générateur de grille CSS (Visuel)
Guide
CSS Grid Generator
Build CSS Grid layouts visually. Click cells to define named areas, adjust column and row sizes, and get production-ready CSS code instantly. No memorizing grid syntax — just click and build.
Comment utiliser
Set the number of columns and rows, then click on grid cells to assign named areas (like header, sidebar, main, footer). Cells with the same name are highlighted in the same color. The CSS output updates live as you design your layout. Use preset buttons for common layouts like Holy Grail or Dashboard.
Caractéristiques
- Interactive Grid Editor – Click cells to assign named areas with auto-colored visualization
- Live CSS Output – Production-ready code with grid-template-areas, grid-template-columns, grid-template-rows, and gap
- Aperçu en direct – See your layout rendered with colored named areas in real time
- Preset Layouts – One-click Holy Grail, Dashboard, Blog, and Portfolio layouts
- Flexible Sizing – Define column and row sizes using fr, px, or percentage units
- Child Element CSS – Generates grid-area rules for each named area automatically
- 100% Client-Side – All layout generation happens in your browser
FAQ
-
What is CSS Grid and how is it different from Flexbox?
CSS Grid is a two-dimensional layout system that handles both columns and rows simultaneously. Flexbox is one-dimensional, working along either a row or a column axis. Grid is ideal for page-level layouts (headers, sidebars, content areas), while Flexbox excels at component-level alignment (navigation items, card contents). Most modern layouts use both together.
-
What is the fr unit in CSS Grid?
The fr (fraction) unit represents a fraction of the available space in the grid container. 1fr 2fr means the second column gets twice the space of the first. It is similar to flex-grow in Flexbox but designed specifically for grid tracks. fr units automatically distribute remaining space after fixed-size tracks (px, em) are allocated.
-
What is grid-template-areas and why use named areas?
grid-template-areas lets you define your layout using named strings that visually represent the grid structure in your CSS. Instead of placing items by line numbers (grid-column: 1 / 3), you assign them by name (grid-area: header). The resulting CSS reads like an ASCII art version of your layout, making it self-documenting and easier to maintain.
-
What is the Holy Grail layout in web design?
The Holy Grail layout is a classic web page structure with a header spanning the full width, a three-column body (left sidebar, main content, right sidebar), and a full-width footer. It was historically difficult to achieve with CSS floats and was called the Holy Grail because a clean implementation was so elusive. CSS Grid makes it trivial.
Installez nos extensions
Ajoutez des outils IO à votre navigateur préféré pour un accès instantané et une recherche plus rapide
恵 Le Tableau de Bord Est Arrivé !
Tableau de Bord est une façon amusante de suivre vos jeux, toutes les données sont stockées dans votre navigateur. D'autres fonctionnalités arrivent bientôt !
Outils essentiels
Tout voir Nouveautés
Tout voirMise à jour: Notre dernier outil a été ajouté le 21 mars 2026
