Перейти к содержимому

Генератор CSS Grid

Бесплатный онлайн генератор CSS Grid. Визуальный редактор строк, столбцов, отступов с автоматической генерацией кода. Обработка в браузере.

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 код
<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 Файлы не отправляются на сервер

Как использовать Генератор 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.

Часто задаваемые вопросы о Генератор 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.