--- id: howto-css-four-columns title: "How To - Four Column Layout" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["4 column grid CSS float"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.82 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "layout", "float", "responsive"] raw_sources: ["https://www.w3schools.com/howto/howto_css_four_columns.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Four Columns]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) Four equal columns is just `width: 25%` (100% Γ· 4 columns) applied to `float: left` children β€” the SAME clearfix-plus-float pattern already seen in the About Page and Equal Height recipes, confirming that "N equal float columns" always reduces to `width: (100/N)%` plus a `::after` clearfix on the row, regardless of whether N is 2, 3, or 4. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`width: 25%` for 4 equal columns** β€” the float-width formula generalizes as `100% / N` for N equal columns. [S1] - **`.row:after` clearfix** β€” required whenever floated columns are used, to prevent the row container from collapsing. [S1] - **Single-breakpoint responsive collapse** β€” `@media (max-width: 600px) { .column { width: 100%; } }` stacks all four columns vertically below 600px, with no intermediate 2-column step (contrast with Mixed Column Layout, which adds an intermediate breakpoint). [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Base layout: `.column { float: left; width: 25%; } .row:after { content: ""; display: table; clear: both; }`. [S1] - Responsive collapse: `@media screen and (max-width: 600px) { .column { width: 100%; } }`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ—†μŒ β€” μ‹ κ·œ λ ˆμ‹œν”Ό, κΈ°μ‘΄ λ¬Έμ„œμ™€ λͺ¨μˆœλ˜λŠ” λ‚΄μš© μ—†μŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) 4개의 λ™μΌν•œ 폭 μ»¬λŸΌμ„ λ§Œλ“€κ³ , 600px 미만 ν™”λ©΄μ—μ„œ μ „λΆ€ μ„Έλ‘œλ‘œ μŒ“μ΄κ²Œ ν•˜λŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 μ œμ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Four equal float columns with a single responsive breakpoint (CSS): ```css .column { float: left; width: 25%; } .row:after { content: ""; display: table; clear: both; } @media screen and (max-width: 600px) { .column { width: 100%; } } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.82 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Mixed Columns]], [[HOWTO CSS Three Columns]], [[HOWTO CSS Two Columns]], [[HOWTO CSS Equal Height]] - **μ°Έμ‘° λ§₯락:** CSS Layout & Positioning μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Four Column Layout β€” https://www.w3schools.com/howto/howto_css_four_columns.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Four Column Layout" recipe (Astra wiki-curation, P-Reinforce v3.1 format).