---
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).