ToolPal

CSS Grid-Generator

Gestalten Sie CSS-Grid-Layouts visuell und kopieren Sie sofort den generierten CSS-Code.

Container-Eigenschaften

6 Elemente

Vorschau

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6

Generiertes CSS

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  justify-items: stretch;
  align-items: stretch;
  justify-content: start;
  align-content: start;
}

Anleitung

Gestalten Sie CSS-Grid-Layouts visuell und kopieren Sie sofort den generierten CSS-Code.

  1. 1Set grid-template-columns using presets like repeat(3, 1fr) or enter a custom value.
  2. 2Configure grid-template-rows and gap to define row height and spacing.
  3. 3Adjust justify-items and align-items to control item placement within cells.
  4. 4Use justify-content and align-content to position the whole grid in its container.
  5. 5Add or remove items to preview different layouts, then copy the generated CSS.

Funktionen

  • Column and row presets with custom input — use common grid patterns or enter any valid CSS value
  • Live visual preview — see exactly how your grid looks as you change properties
  • Full alignment control — configure justify-items, align-items, justify-content, and align-content
  • One-click CSS copy — get clean, ready-to-paste CSS with all seven grid properties

Häufig gestellte Fragen

Mehr erfahren