W3Schools 튜토리얼을 P-Reinforce v3.1 포맷으로 위키화(영어 본문, 한/영 섹션 헤더). - Topic_HTML: 59문서 (튜토리얼+예제, 레퍼런스/메타 제외) - Topic_CSS: 190문서 (메인 + Advanced/Flexbox/Grid/RWD 전체) - Topic_JavaScript: 120문서 (코어 언어; Temporal/DOM상세/BOM/WebAPI/AJAX/jQuery/Graphics 등은 후속) 각 폴더 00_INDEX.md(MOC) 포함. 코드 verbatim, 미확인분은 "Not found in source" 표기. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6.1 KiB
id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
| id | title | category | status | verification_status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | created_at | updated_at | review_reason | merge_history | tags | raw_sources | applied_in | github_commit | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| css-rwd-grid-view | CSS RWD Grid View | Frontend | draft | conceptual |
|
B | 0.88 | 2026-06-23 | 2026-06-23 |
|
|
CSS RWD Grid View
🎯 한 줄 통찰 (One-line insight)
A grid-view divides the page into rows and columns; using box-sizing: border-box and a display: grid container with named grid-template-areas, you build a layout whose regions can later be rearranged with media queries for different screen sizes. [S1]
🧠 핵심 개념 (Core concepts)
- Grid-view — many web pages are based on a grid-view, which means that the page is divided into rows and columns. [S1]
box-sizing: border-box— applied to all elements, this makes sure that the padding and border are included in the total width and height of the elements. [S1]- CSS Grid container —
display: gridon a container, combined withgrid-template-areas, defines named layout regions (header, menu, main, facts, footer). [S1] gap— the container sets spacing between grid items (heregap: 10px). [S1]- Next step — the page points to adding media queries and breakpoints for different screen sizes in the next chapter. [S1]
🧩 추출된 패턴 (Extracted patterns)
- Named-area layout — assign each block a
grid-areaname and lay them out by listing those names ingrid-template-areas, making the structure readable and easy to rearrange. [S1] - Universal border-box reset —
* { box-sizing: border-box; }removes width-math surprises across the whole document. [S1]
📖 세부 내용 (Details)
What is a Grid-View? Many web pages are based on a grid-view, which means that the page is divided into rows and columns. [S1]
box-sizing
The box-sizing property allows us to include the padding and border in an element's total width and height. Applying it to all elements makes sure that the padding and border are included in the total width and height of the elements. [S1]
Complete CSS [S1]
* {
box-sizing: border-box;
}
body {
font-family: "Lucida Sans", sans-serif;
font-size: 17px;
}
.grid-container {
display: grid;
grid-template-areas:
'header'
'menu'
'main'
'facts'
'footer';
background-color: white;
gap: 10px;
}
.header {
grid-area: header;
background-color: purple;
text-align: center;
color: #ffffff;
}
.header > h1 {
font-size: 40px;
}
.menu {
grid-area: menu;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
padding: 8px;
margin-bottom: 7px;
background-color: #33b5e5;
color: #ffffff;
}
.menu li:hover {
background-color: #0099cc;
}
.content {
grid-area: main;
}
.content > h1 {
font-size: 30px;
margin-bottom: 7px;
}
.content > p {
margin-bottom: 7px;
}
.facts {
grid-area: facts;
border: 1px solid #0099cc;
background-color: beige;
padding: 10px;
}
.facts > h2 {
font-size: 20px;
}
.facts li {
margin-bottom: 5px;
}
.footer {
grid-area: footer;
background-color: #0099cc;
color: #ffffff;
text-align: center;
}
Complete HTML [S1]
<div class="grid-container">
<div class="header"><h1>Chania</h1></div>
<div class="menu">
<ul>
<li>The Flight</li>
<li>The City</li>
<li>The Island</li>
<li>The Food</li>
</ul>
</div>
<div class="content">
<h1>The City</h1>
<p>Chania is the capital of the Chania region on the island of Crete.</p>
<p>The city can be divided in two parts, the old town and the modern city. The old town is situated next to the old harbour and is the matrix around which the whole urban area was developed.</p>
<p>Chania lies along the north west coast of the island Crete.</p>
</div>
<div class="facts">
<h2>Facts:</h2>
<ul>
<li>Chania is a city on the island of Crete</li>
<li>Crete is a Greek island in the Mediterranean Sea</li>
</ul>
</div>
<div class="footer"><p>A footer.</p></div>
</div>
By default this single-column stacking layout (header, menu, main, facts, footer) is the mobile/base view; the next chapter adds media queries and breakpoints to rearrange these areas for larger screens. [S1]
🛠️ 적용 사례 (Applied in summary)
The "Chania" travel page above is the page's own complete applied example — a grid container with header, menu, content, facts, and footer regions. No external project/commit applications found in the source.
💻 코드 패턴 (Code patterns)
Named-area grid container (language: CSS):
.grid-container {
display: grid;
grid-template-areas:
'header'
'menu'
'main'
'facts'
'footer';
gap: 10px;
}
Border-box reset (language: CSS):
* {
box-sizing: border-box;
}
⚖️ 모순 및 업데이트 (Contradictions & updates)
No contradictions found in the source. Note that this lesson teaches the grid using modern CSS Grid (display: grid + grid-template-areas) rather than a float-based 12-column system. [S1]
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
- 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
- 신뢰 점수: 0.88
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: CSS Tutorial
- 관련 개념: CSS RWD Viewport, CSS RWD Media Queries, CSS Grid
- 참조 맥락: Establishes the page layout structure that media-query breakpoints later rearrange for different devices.
📚 출처 (Sources)
- [S1] W3Schools — CSS RWD Grid View — https://www.w3schools.com/css/css_rwd_grid.asp
📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS RWD Grid View" page (Astra wiki-curation, P-Reinforce v3.1 format).