Lewati ke konten

Generator CSS Grid

Alat online gratis generator CSS Grid. Editor visual untuk baris, kolom, gap dengan kode otomatis. Salin kode. Diproses di browser.

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; }
Kode 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 File tidak dikirim ke server mana pun

Bagaimana cara menggunakan 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.

Pertanyaan yang sering diajukan tentang 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.