Spring til indhold

CSS Grid-generator

Gratis CSS Grid-generator online. Visuel editor for rækker, kolonner, mellemrum med automatisk kodegenerering. Behandles i browseren.

CSS Grid Generator is a free online tool that visually designs grid layouts. Set rows, columns, gaps, and cell placement by dragging, with auto-generated CSS Grid code. Real-time preview included. Browser-based processing with no server upload — completely free for web layout design.

1
2
3
4
5
6
7
8
9
.container { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; justify-items: stretch; align-items: stretch; }
HTML-kode
<div class="container"> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> <div>7</div> <div>8</div> <div>9</div> </div>
lock Filer sendes ikke til nogen server

Hvordan bruger man CSS Grid-generator?

  1. Set the number of rows and columns.
  2. Drag cells to merge areas or adjust placement.
  3. Copy the generated CSS Grid code and use it in your project.

Ofte stillede spørgsmål om CSS Grid-generator

What is the difference between CSS Grid and Flexbox?

CSS Grid is for 2D layouts (rows + columns), while Flexbox is for 1D layouts (row or column). Grid is better suited for complex page layouts.

What is the fr unit?

fr (fraction) is a proportional unit used in CSS Grid. For example, 1fr 2fr divides space in a 1:2 ratio. It's very useful for responsive layouts.