--- id: howto-css-mixed-columns title: "How To - Mixed Column Layout" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["responsive 4-2-1 column layout"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.83 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "layout", "float", "responsive", "media-queries"] raw_sources: ["https://www.w3schools.com/howto/howto_css_mixed_columns.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Mixed Columns]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) Where `[[HOWTO CSS Four Columns]]` collapsed directly from 4 columns to 1 stacked column at a single breakpoint, this recipe adds an INTERMEDIATE step β€” two STACKED media queries (900px, then 600px) progressively widen each column's percentage (25% β†’ 50% β†’ 100%) as the screen narrows, demonstrating that responsive breakpoints aren't limited to one "desktop vs. mobile" cutoff; they can chain to create a 4-column β†’ 2-column β†’ 1-column cascade, with each `@media` rule simply overriding the previous width at a narrower threshold. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Base layout: 4 equal float columns** β€” `.column { float: left; width: 25%; }` plus the standard `.row:after` clearfix. [S1] - **First breakpoint (900px): 4 β†’ 2 columns** β€” `@media (max-width: 900px) { .column { width: 50%; } }`. [S1] - **Second breakpoint (600px): 2 β†’ 1 column** β€” `@media (max-width: 600px) { .column { width: 100%; } }`. [S1] - **Cascading override order matters** β€” later (narrower) media queries must come after earlier (wider) ones in the stylesheet so they correctly override at smaller widths, per normal CSS cascade rules. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Full progressive layout: `.column { float: left; width: 25%; } .row:after { content: ""; display: table; clear: both; } @media screen and (max-width: 900px) { .column { width: 50%; } } @media screen and (max-width: 600px) { .column { width: 100%; } }`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **단일 λΈŒλ ˆμ΄ν¬ν¬μΈνŠΈκ°€ μ•„λ‹ˆλΌ 닀단계 μΊμŠ€μΌ€μ΄λ“œ**: `[[HOWTO CSS Four Columns]]`λŠ” 600px ν•˜λ‚˜μ˜ 브레이크포인트둜 4μ—΄β†’1μ—΄λ‘œ λ°”λ‘œ λΆ•κ΄΄μ‹œμΌ°μ§€λ§Œ, 이 λ ˆμ‹œν”ΌλŠ” 900px(4β†’2μ—΄)κ³Ό 600px(2β†’1μ—΄) 두 단계λ₯Ό κ±°μΉ˜λŠ” 점진적 λΆ•κ΄΄λ₯Ό μ‚¬μš©ν•œλ‹€λŠ” 점이 확인됨 β€” λ°˜μ‘ν˜• λΈŒλ ˆμ΄ν¬ν¬μΈνŠΈκ°€ μ—¬λŸ¬ λ‹¨κ³„λ‘œ 연쇄될 수 μžˆμŒμ„ λ³΄μ—¬μ€Œ. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) ν™”λ©΄ 폭에 따라 4μ—΄β†’2μ—΄β†’1μ—΄λ‘œ μ μ§„μ μœΌλ‘œ λ°”λ€ŒλŠ” 컬럼 λ ˆμ΄μ•„μ›ƒ μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 μ œμ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Progressive breakpoint cascade β€” 4 columns β†’ 2 β†’ 1 (CSS): ```css .column { float: left; width: 25%; } @media screen and (max-width: 900px) { .column { width: 50%; } } @media screen and (max-width: 600px) { .column { width: 100%; } } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.83 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Four Columns]], [[HOWTO CSS Responsive Floats]], [[HOWTO CSS Two Columns]] - **μ°Έμ‘° λ§₯락:** CSS Layout & Positioning μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Mixed Column Layout β€” https://www.w3schools.com/howto/howto_css_mixed_columns.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Mixed Column Layout" recipe (Astra wiki-curation, P-Reinforce v3.1 format).