> For the complete documentation index, see [llms.txt](https://yamoo9.gitbook.io/css-grid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yamoo9.gitbook.io/css-grid/css-grid-layout-usage-guide/symmetrical-grid-layout/12-column-grid-system.md).

# 12 Column System

## 12 컬럼 그리드 시스템 <a href="#asymmetrical-grid" id="asymmetrical-grid"></a>

12 컬럼 그리드는 웹 레이아웃을 구현하는 가장 대표적인 그리드 시스템입니다.

![12 컬럼 그리드 시스템](/files/-LHLMx8_ePNhpwLm0JV0)

CSS Grid를 사용해 재사용 가능한 12 컬럼 그리드를 구현할 수 있습니다. 완성된 그리드 시스템은 다음과 같습니다.

{% embed url="<https://codepen.io/yamoo9/pen/zdMooa>" %}

일정한 열 너비와 거터 간격만 설정하면 손쉽게 12 컬럼 그리드를 만들 수 있습니다.

```css
.grid {
  display: grid;
  width: 120rem;
  margin-left: auto;
  margin-right: auto;
  padding-right: 10px;
  padding-left: 10px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(5rem, auto);
  grid-gap: 10px;
}
.grid .col-1 {
  grid-column-end: span 1;
}
.grid .row-1 {
  grid-row-end: span 1;
}
.grid .col-2 {
  grid-column-end: span 2;
}
.grid .row-2 {
  grid-row-end: span 2;
}
.grid .col-3 {
  grid-column-end: span 3;
}
.grid .row-3 {
  grid-row-end: span 3;
}
.grid .col-4 {
  grid-column-end: span 4;
}
.grid .row-4 {
  grid-row-end: span 4;
}
.grid .col-5 {
  grid-column-end: span 5;
}
.grid .row-5 {
  grid-row-end: span 5;
}
.grid .col-6 {
  grid-column-end: span 6;
}
.grid .row-6 {
  grid-row-end: span 6;
}
.grid .col-7 {
  grid-column-end: span 7;
}
.grid .row-7 {
  grid-row-end: span 7;
}
.grid .col-8 {
  grid-column-end: span 8;
}
.grid .row-8 {
  grid-row-end: span 8;
}
.grid .col-9 {
  grid-column-end: span 9;
}
.grid .row-9 {
  grid-row-end: span 9;
}
.grid .col-10 {
  grid-column-end: span 10;
}
.grid .row-10 {
  grid-row-end: span 10;
}
.grid .col-11 {
  grid-column-end: span 11;
}
.grid .row-11 {
  grid-row-end: span 11;
}
.grid .col-full, .grid .col-12 {
  grid-column: 1 / -1;
}
```

HTML 요소에 설계한 12 컬럼 그리드를 적용해 레이아웃을 형성합니다.

```markup
<div class="grid">
  <!-- .col-1 -->
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <div class="item col-1">1</div>
  <!-- .col-2 -->
  <div class="item col-2">2</div>
  <div class="item col-2">2</div>
  <div class="item col-2">2</div>
  <div class="item col-2">2</div>
  <div class="item col-2">2</div>
  <div class="item col-2">2</div>
  <!-- .col-3 -->
  <div class="item col-3">3</div>
  <div class="item col-3">3</div>
  <div class="item col-3">3</div>
  <div class="item col-3">3</div>
  <!-- .col-4 -->
  <div class="item col-4">4</div>
  <div class="item col-4">4</div>
  <div class="item col-4">4</div>
  <!-- .col-5 -->
  <div class="item col-5">5</div>
  <div class="item col-2">2</div>
  <div class="item col-5">5</div>
  <!-- .col-6 -->
  <div class="item col-6">6</div>
  <div class="item col-6">6</div>
  <!-- .col-7 -->
  <div class="item col-7">7</div>
  <div class="item col-3">3</div>
  <div class="item col-2">2</div>
  <!-- .col-8 -->
  <div class="item col-8">8</div>
  <div class="item col-4">4</div>
  <!-- .col-9 -->
  <div class="item col-9">9</div>
  <div class="item col-2">2</div>
  <div class="item col-1">1</div>
  <!-- .col-10 -->
  <div class="item col-10">10</div>
  <div class="item col-2">2</div>
  <!-- .col-11 -->
  <div class="item col-11">11</div>
  <div class="item col-1">1</div>
  <!-- .col-full -->
  <div class="item col-full">12</div>
</div>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://yamoo9.gitbook.io/css-grid/css-grid-layout-usage-guide/symmetrical-grid-layout/12-column-grid-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
