Przejdź do treści

Generator CSS Grid

Darmowy generator CSS Grid online. Wizualny edytor wierszy, kolumn, odstępów z automatycznym generowaniem kodu. Przetwarzane w przeglądarce.

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; }
Kod HTML
<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 Pliki nie są wysyłane na żaden serwer

Jak używać Generator CSS Grid?

  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.

Najczęściej zadawane pytania o Generator CSS Grid

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.