--- id: css-responsive-table title: "CSS Responsive Table" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["responsive table", "overflow-x auto", "scrollable table", "table container", "horizontal scrollbar table"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.87 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "table", "responsive", "overflow"] raw_sources: ["https://www.w3schools.com/css/css_table_responsive.asp"] applied_in: [] github_commit: "" --- # [[CSS Table Responsive]] ## ๐ŸŽฏ ํ•œ ์ค„ ํ†ต์ฐฐ (One-line insight) Wrap a table in a container with `overflow-x: auto;` so it shows a horizontal scrollbar instead of breaking the layout on small screens. [S1] ## ๐Ÿง  ํ•ต์‹ฌ ๊ฐœ๋… (Core concepts) - **Responsive table behavior** โ€” a responsive table will display a horizontal scrollbar if the screen is too small to display the full content. [S1] - **Wrap in a container** โ€” wrap the `` element in a `
` container. [S1] - **Enable horizontal overflow** โ€” set the `overflow-x` property to `auto` for the `
` element. [S1] ## ๐Ÿงฉ ์ถ”์ถœ๋œ ํŒจํ„ด (Extracted patterns) - **Container + overflow pattern** โ€” `
` wrapper with `overflow-x: auto;` is the standard way to make a wide table scroll horizontally within its space. [S1] ## ๐Ÿ“– ์„ธ๋ถ€ ๋‚ด์šฉ (Details) A responsive table will display a horizontal scrollbar if the screen is too small to display the full content. [S1] To make the table responsive, wrap the `
` element in a `
` container, and set the `overflow-x` property to `auto` for the `
` element: [S1] ```css div.tablecontainer { overflow-x: auto; } ``` **Note:** In OS X Lion (on Mac), scrollbars are hidden by default and are only shown when being used (even though `overflow:scroll` is set). [S1] The page also references additional examples such as "Make a fancy table" and "Add and position a table caption." [S1] **CSS Table Properties (reference table)** [S1] | Property | Description | |----------|-------------| | border | Sets all the border properties in one declaration | | border-collapse | Specifies whether or not table borders should be collapsed | | border-spacing | Specifies the distance between the borders of adjacent cells | | caption-side | Specifies the placement of a table caption | | empty-cells | Specifies whether or not to display borders and background on empty cells | | table-layout | Sets the layout algorithm to be used for a table | ## ๐Ÿ› ๏ธ ์ ์šฉ ์‚ฌ๋ก€ (Applied in summary) The page's own example is the applied case: a `div.tablecontainer` with `overflow-x: auto;` wrapping a table. No external project/commit applications found in the source. ## ๐Ÿ’ป ์ฝ”๋“œ ํŒจํ„ด (Code patterns) Responsive table container (language: CSS): ```css div.tablecontainer { overflow-x: auto; } ``` ## โš–๏ธ ๋ชจ์ˆœ ๋ฐ ์—…๋ฐ์ดํŠธ (Contradictions & updates) No contradictions found in the source. ## โœ… ๊ฒ€์ฆ ์ƒํƒœ ๋ฐ ์‹ ๋ขฐ๋„ - **์ƒํƒœ:** draft - **๊ฒ€์ฆ ๋‹จ๊ณ„:** conceptual (์‹ค์ œ ์ ์šฉ ์‚ฌ๋ก€ ๋ฐœ๊ฒฌ ์‹œ applied/validated๋กœ ์Šน๊ฒฉ ๊ฐ€๋Šฅ) - **์ถœ์ฒ˜ ์‹ ๋ขฐ๋„:** B (W3Schools โ€” widely used educational reference, not a primary standards body) - **์‹ ๋ขฐ ์ ์ˆ˜:** 0.87 - **์ค‘๋ณต ๊ฒ€์‚ฌ ๊ฒฐ๊ณผ:** ์‹ ๊ทœ ์ƒ์„ฑ (New discovery) ## ๐Ÿ”— ์ง€์‹ ๊ทธ๋ž˜ํ”„ (Knowledge Graph) - **์ƒ์œ„/๋ฃจํŠธ:** [[CSS Tutorial]] - **๊ด€๋ จ ๊ฐœ๋…:** [[CSS Table Size]], [[CSS Table Styling]], [[CSS Max Width]] - **์ฐธ์กฐ ๋งฅ๋ฝ:** Referenced whenever a wide table must remain usable on narrow viewports. ## ๐Ÿ“š ์ถœ์ฒ˜ (Sources) - [S1] W3Schools โ€” CSS Responsive Table โ€” https://www.w3schools.com/css/css_table_responsive.asp ## ๐Ÿ“ ๋ณ€๊ฒฝ ์ด๋ ฅ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Responsive Table" page (Astra wiki-curation, P-Reinforce v3.1 format).