--- id: howto-css-two-columns title: "How To - Two Column Layout" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["2 column grid CSS float flexbox"] 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", "flexbox", "responsive"] raw_sources: ["https://www.w3schools.com/howto/howto_css_two_columns.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Two Columns]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) This is the only column-layout recipe in this cookbook batch to state an explicit DECISION RULE rather than just presenting Flexbox as strictly "the modern way" β€” it says "it is up to you if you want to use floats or flex... however, if you need support for IE10 and down, you should use float," turning what could be a simple old-vs-new dichotomy into a practical browser-support checklist for choosing between the two. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Float method (equal)** β€” `.column { float: left; width: 50%; }` + clearfix, same pattern as 3/4-column recipes. [S1] - **Flexbox method (equal)** β€” `.row { display: flex; } .column { flex: 50%; }` β€” no clearfix needed since Flexbox doesn't remove children from flow the way floats do. [S1] - **Explicit decision rule** β€” use float if IE10-or-earlier support is required; otherwise either method works. [S1] - **Unequal columns (float only shown)** β€” `.left { width: 25%; } .right { width: 75%; }`. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Float: `.column { float: left; width: 50%; } .row:after { content: ""; display: table; clear: both; }`. [S1] - Flex: `.row { display: flex; } .column { flex: 50%; }`. [S1] - Responsive collapse: `@media (max-width: 600px) { .column { width: 100%; } }`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **λͺ…μ‹œμ  선택 기쀀이 μ œμ‹œλ¨**: λ‹€λ₯Έ 컬럼 λ ˆμ΄μ•„μ›ƒ λ ˆμ‹œν”Όλ“€κ³Ό 달리, 이 μ±•ν„°λŠ” "IE10 μ΄ν•˜ 지원이 ν•„μš”ν•˜λ©΄ floatλ₯Ό 쓰라"λŠ” ꡬ체적 선택 기쀀을 직접 λͺ…μ‹œν•œλ‹€λŠ” 점이 확인됨 β€” λ‹¨μˆœνžˆ "flexκ°€ 더 ν˜„λŒ€μ "μ΄λΌλŠ” μ„œμˆ μ— κ·ΈμΉ˜μ§€ μ•ŠμŒ. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) λ™μΌν•œ 2단 λ ˆμ΄μ•„μ›ƒμ„ float와 flexbox 두 κ°€μ§€ λ°©μ‹μœΌλ‘œ 각각 κ΅¬ν˜„ν•˜κ³ , 각 λ°©μ‹μ˜ λΈŒλΌμš°μ € 지원 여뢀에 λ”°λ₯Έ 선택 기쀀을 ν•¨κ»˜ μ œμ‹œν•˜λŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 제곡됨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Float vs. Flexbox for two equal columns β€” pick based on IE10 support needs (CSS): ```css /* Float -- use if IE10 and earlier must be supported */ .column-float { float: left; width: 50%; } .row:after { content: ""; display: table; clear: both; } /* Flexbox -- modern, no IE10 and earlier support */ .row-flex { display: flex; } .column-flex { flex: 50%; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.82 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Three Columns]], [[HOWTO CSS Split Screen]], [[HOWTO CSS Equal Height]] - **μ°Έμ‘° λ§₯락:** CSS Layout & Positioning μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Two Column Layout β€” https://www.w3schools.com/howto/howto_css_two_columns.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Two Column Layout" recipe (Astra wiki-curation, P-Reinforce v3.1 format).