๐Ÿ“ CSS Grid Visual Inspector

โš™๏ธ Grid Configuration

๐Ÿ‘๏ธ Grid Preview

Click cells to select and name grid areas. Click again to deselect.

๐Ÿ’ป Generated CSS Code

๐Ÿ“š What can CSS Grid Inspector do?

CSS Grid Visual Inspector is an interactive tool for visually building and debugging CSS Grid layouts. Through visual grid preview and parameter adjustment, quickly generate Grid layout code.

Core Features

โ€ข Visual grid preview: Real-time Grid layout display

โ€ข Interactive configuration: Adjust rows, columns, sizes, gaps

โ€ข Cell selection: Set grid-column/row span

โ€ข Alignment control: justify/align-items property adjustment

โ€ข Code generation: Auto-generate CSS+HTML code

โ€ข Multiple size units: fr/px/%/auto/minmax()

How to Use

1. Set column and row counts

2. Configure each column/row size (e.g. 1fr 200px auto)

3. Adjust gap spacing and alignment

4. Click cells to set span areas

5. Copy the generated CSS and HTML code

Use Cases

โ€ข Page Layout: Quickly build responsive page grid layouts

โ€ข Component Design: Design card, dashboard component layouts

โ€ข Learning Grid: Interactive CSS Grid property learning

โ€ข Layout Debug: Visually debug Grid layout issues

Extended Knowledge

CSS Grid Layout is a W3C two-dimensional layout system, supported by all major browsers since 2017. Core concepts include Grid Container (display:grid), Grid Items (children), Grid Lines, Grid Tracks (row/column tracks), Grid Areas (named regions). The fr unit is Grid-specific, representing proportional shares of available space.

โ“ FAQ

What is CSS Grid?

CSS Grid is a two-dimensional layout system in CSS that controls both rows and columns. It defines grids via grid-template-rows/columns, with children placed using grid-row/column.

How to use this tool?

Set row/column counts and sizes, click cells in the visual grid to adjust positions, and the tool auto-generates CSS code. Supports gap, alignment, and other properties.

What Grid properties are supported?

Supports grid-template-columns/rows, gap, grid-column/row (with span), justify/align-items, grid-template-areas, and other core properties.

Can I customize row/column sizes?

Yes. Supports px, fr, %, auto, minmax(), repeat() and all CSS Grid size units.

Is the generated CSS ready to use?

Yes. Standard CSS Grid syntax, directly copyable into your project.

Does it support Grid Template Areas?

Yes. Define grid-template-areas through named regions in the visual interface.

CSS Grid Visual Inspector | No Signup, Client-Side ยท No Server Uploads

Feedback: dexshuang@google.com