--- id: w3css-rows title: "W3CSS Rows" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["w3-row", "w3-half", "w3-rest", "W3.CSS ν μμ€ν "] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["w3css", "css-framework", "w3schools", "rows", "responsive-grid"] raw_sources: ["https://www.w3schools.com/w3css/w3css_rows.asp"] applied_in: [] github_commit: "" --- # [[W3CSS Rows]] ## π― ν μ€ ν΅μ°° (One-line insight) Every named-fraction column class (`w3-half`, `w3-third`, `w3-quarter`, etc.) automatically collapses to 100% width below 601px β this single mobile-first rule is what makes a `w3-row` layout "responsive" without any media queries in the developer's own code, since the breakpoint logic is baked into the framework itself. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **`w3-row`** β no-padding row container. **`w3-row-padding`** β same, but with 8px left/right padding per column. [S1] - **Named fraction classes** β `w3-half` (50%), `w3-third` (33.33%), `w3-twothird` (66.66%), `w3-quarter` (25%), `w3-threequarter` (75%) β ALL collapse to 100% on screens under 601px. [S1] - **`w3-rest`** β occupies whatever width remains after other fixed/percent-width columns; MUST be the last element in the row's source order. [S1] - **`w3-col`** β defines one column in a 12-column grid, with a manually specified width (px, %, or plain, unstyled). [S1] - **Nested rows** β a `w3-row` can be placed entirely inside one column of an outer `w3-row`, for sub-layouts. [S1] - **`w3-stretch`** β removes left/right margins, useful for stretching a `w3-row-padding` row to the container's full edge-to-edge width. [S1] - **DP (density-independent pixels)** β W3.CSS's responsiveness thresholds (601px small/medium boundary, 993px medium/large) are based on DP, not raw physical resolution β e.g. an iPhone 6 at 750Γ1334px resolution is treated as 375Γ667 DP, i.e. a small screen. [S1] ## π μΈλΆ λ΄μ© (Details) - Two-thirds/one-third split: `
I am 150px
I am the rest
I am 150px
I am the rest