• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      More MDN. Your MDN.

    • FAQ

      Frequently asked questions about MDN Plus

  • Already a subscriber?
  • Get MDN Plus
  1. References
  2. CSS
  3. CSS Table

In this article

  • Reference
  • Specifications

Related Topics

  1. Learn CSS
  2. CSS first steps
    1. CSS first steps overview
    2. What is CSS?
    3. Getting started with CSS
    4. How CSS is structured
    5. How CSS works
    6. Using your new knowledge
  3. CSS building blocks
    1. CSS building blocks overview
    2. Cascade and inheritance
    3. CSS selectors
    4. The box model
    5. Backgrounds and borders
    6. Handling different text directions
    7. Overflowing content
    8. Values and units
    9. Sizing items in CSS
    10. Images, media, and form elements
    11. Styling tables
    12. Debugging CSS
    13. Organizing your CSS
  4. Styling text
    1. Styling text overview
    2. Fundamental text and font styling
    3. Styling lists
    4. Styling links
    5. Web fonts
    6. Assessment: Typesetting a community school homepage
  5. CSS layout
    1. CSS layout overview
    2. Introduction to CSS layout
    3. Normal Flow
    4. Flexbox
    5. Grids
    6. Floats
    7. Positioning
    8. Multiple-column Layout
    9. Responsive design
    10. Media queries
    11. Legacy Layout Methods
    12. Supporting Older Browsers
    13. Fundamental Layout Comprehension
  6. Reference
  7. Modules
    1. Compositing and Blending
    2. CSS Animations
    3. CSS Backgrounds and Borders
    4. CSS Basic User Interface
    5. CSS Box Model
    6. CSS Charsets
    7. CSS Colors
    8. CSS Multi-column Layout
    9. CSS Conditional Rules
    10. CSS Counter Styles
    11. CSS Device Adaptation
    12. CSS Display
    13. CSS Flexible Box Layout
    14. CSS Fonts
    15. CSS Fragmentation
    16. CSS Generated Content
    17. CSS Grid Layout
    18. Experimental CSS Houdini
    19. CSS Images
    20. CSS Lists
    21. CSS Logical Properties and Values
    22. CSS Masking
    23. CSS Miscellaneous
    24. Experimental CSS Motion Path
    25. CSS Namespaces
    26. CSS Paged Media
    27. CSS Positioned Layout
    28. CSS Ruby Layout
    29. CSS Scroll Snap
    30. CSS Scroll Snap Points
    31. CSS Scrollbars
    32. CSS selectors
    33. CSS Shapes
    34. CSS Table
    35. CSS Text
    36. CSS Text Decoration
    37. CSS Transforms
    38. CSS Transitions
    39. CSS data types
    40. CSS Custom Properties for Cascading Variables
    41. CSS Writing Modes
    42. CSSOM View
    43. Filter Effects
    44. Media queries
    45. Pseudo-classes
    46. Pseudo-elements
    47. CSS reference
  8. Properties
    1. accent-color
    2. align-content
    3. align-items
    4. align-self
    5. all
    6. animation
    7. animation-delay
    8. animation-direction
    9. animation-duration
    10. animation-fill-mode
    11. animation-iteration-count
    12. animation-name
    13. animation-play-state
    14. animation-timeline
    15. animation-timing-function
    16. appearance
    17. aspect-ratio
    18. backdrop-filter
    19. backface-visibility
    20. background
    21. background-attachment
    22. background-blend-mode
    23. background-clip
    24. background-color
    25. background-image
    26. background-origin
    27. background-position
    28. background-position-x
    29. background-position-y
    30. background-repeat
    31. background-size
    32. block-size
    33. border
    34. border-block
    35. border-block-color
    36. border-block-end
    37. border-block-end-color
    38. border-block-end-style
    39. border-block-end-width
    40. border-block-start
    41. border-block-start-color
    42. border-block-start-style
    43. border-block-start-width
    44. border-block-style
    45. border-block-width
    46. border-bottom
    47. border-bottom-color
    48. border-bottom-left-radius
    49. border-bottom-right-radius
    50. border-bottom-style
    51. border-bottom-width
    52. border-collapse
    53. border-color
    54. border-end-end-radius
    55. border-end-start-radius
    56. border-image
    57. border-image-outset
    58. border-image-repeat
    59. border-image-slice
    60. border-image-source
    61. border-image-width
    62. border-inline
    63. border-inline-color
    64. border-inline-end
    65. border-inline-end-color
    66. border-inline-end-style
    67. border-inline-end-width
    68. border-inline-start
    69. border-inline-start-color
    70. border-inline-start-style
    71. border-inline-start-width
    72. border-inline-style
    73. border-inline-width
    74. border-left
    75. border-left-color
    76. border-left-style
    77. border-left-width
    78. border-radius
    79. border-right
    80. border-right-color
    81. border-right-style
    82. border-right-width
    83. border-spacing
    84. border-start-end-radius
    85. border-start-start-radius
    86. border-style
    87. border-top
    88. border-top-color
    89. border-top-left-radius
    90. border-top-right-radius
    91. border-top-style
    92. border-top-width
    93. border-width
    94. bottom
    95. box-decoration-break
    96. box-shadow
    97. box-sizing
    98. break-after
    99. break-before
    100. break-inside
    101. caption-side
    102. caret-color
    103. clear
    104. Deprecated clip
    105. clip-path
    106. color
    107. color-scheme
    108. column-count
    109. column-fill
    110. column-gap (grid-column-gap)
    111. column-rule
    112. column-rule-color
    113. column-rule-style
    114. column-rule-width
    115. column-span
    116. column-width
    117. columns
    118. contain
    119. content
    120. content-visibility
    121. counter-increment
    122. counter-reset
    123. counter-set
    124. cursor
    125. direction
    126. display
    127. empty-cells
    128. filter
    129. flex
    130. flex-basis
    131. flex-direction
    132. flex-flow
    133. flex-grow
    134. flex-shrink
    135. flex-wrap
    136. float
    137. font
    138. font-family
    139. font-feature-settings
    140. font-kerning
    141. font-language-override
    142. font-optical-sizing
    143. font-size
    144. font-size-adjust
    145. font-stretch
    146. font-style
    147. font-synthesis
    148. font-variant
    149. font-variant-alternates
    150. font-variant-caps
    151. font-variant-east-asian
    152. font-variant-ligatures
    153. font-variant-numeric
    154. font-variant-position
    155. font-variation-settings
    156. font-weight
    157. forced-color-adjust
    158. gap (grid-gap)
    159. grid
    160. grid-area
    161. grid-auto-columns
    162. grid-auto-flow
    163. grid-auto-rows
    164. grid-column
    165. grid-column-end
    166. grid-column-start
    167. grid-row
    168. grid-row-end
    169. grid-row-start
    170. grid-template
    171. grid-template-areas
    172. grid-template-columns
    173. grid-template-rows
    174. hanging-punctuation
    175. height
    176. hyphenate-character
    177. hyphens
    178. image-rendering
    179. Experimental image-resolution
    180. Deprecated ime-mode
    181. Experimental initial-letter
    182. Experimental initial-letter-align
    183. inline-size
    184. inset
    185. inset-block
    186. inset-block-end
    187. inset-block-start
    188. inset-inline
    189. inset-inline-end
    190. inset-inline-start
    191. isolation
    192. justify-content
    193. justify-items
    194. justify-self
    195. left
    196. letter-spacing
    197. line-break
    198. line-height
    199. line-height-step
    200. list-style
    201. list-style-image
    202. list-style-position
    203. list-style-type
    204. margin
    205. margin-block
    206. margin-block-end
    207. margin-block-start
    208. margin-bottom
    209. margin-inline
    210. margin-inline-end
    211. margin-inline-start
    212. margin-left
    213. margin-right
    214. margin-top
    215. Experimental margin-trim
    216. mask
    217. mask-border
    218. mask-border-mode
    219. mask-border-outset
    220. mask-border-repeat
    221. mask-border-slice
    222. mask-border-source
    223. mask-border-width
    224. mask-clip
    225. mask-composite
    226. mask-image
    227. mask-mode
    228. mask-origin
    229. mask-position
    230. mask-repeat
    231. mask-size
    232. mask-type
    233. max-block-size
    234. max-height
    235. max-inline-size
    236. max-width
    237. min-block-size
    238. min-height
    239. min-inline-size
    240. min-width
    241. mix-blend-mode
    242. object-fit
    243. object-position
    244. offset
    245. offset-anchor
    246. offset-distance
    247. offset-path
    248. Experimental offset-position
    249. offset-rotate
    250. opacity
    251. order
    252. orphans
    253. outline
    254. outline-color
    255. outline-offset
    256. outline-style
    257. outline-width
    258. overflow
    259. overflow-anchor
    260. overflow-block
    261. overflow-clip-margin
    262. overflow-inline
    263. overflow-wrap
    264. overflow-x
    265. overflow-y
    266. overscroll-behavior
    267. overscroll-behavior-block
    268. overscroll-behavior-inline
    269. overscroll-behavior-x
    270. overscroll-behavior-y
    271. padding
    272. padding-block-end
    273. padding-block-start
    274. padding-bottom
    275. padding-inline-end
    276. padding-inline-start
    277. padding-left
    278. padding-right
    279. padding-top
    280. page-break-after
    281. page-break-before
    282. page-break-inside
    283. perspective
    284. perspective-origin
    285. place-content
    286. place-items
    287. place-self
    288. pointer-events
    289. position
    290. print-color-adjust
    291. quotes
    292. resize
    293. right
    294. rotate
    295. row-gap (grid-row-gap)
    296. ruby-align
    297. ruby-position
    298. scale
    299. scroll-behavior
    300. scroll-margin
    301. scroll-margin-block
    302. scroll-margin-block-end
    303. scroll-margin-block-start
    304. scroll-margin-bottom
    305. scroll-margin-inline
    306. scroll-margin-inline-end
    307. scroll-margin-inline-start
    308. scroll-margin-left
    309. scroll-margin-right
    310. scroll-margin-top
    311. scroll-padding
    312. scroll-padding-block-end
    313. scroll-padding-block-start
    314. scroll-padding-bottom
    315. scroll-padding-inline
    316. scroll-padding-inline-end
    317. scroll-padding-inline-start
    318. scroll-padding-left
    319. scroll-padding-right
    320. scroll-padding-top
    321. scroll-snap-align
    322. Deprecated scroll-snap-coordinate
    323. Deprecated scroll-snap-destination
    324. Deprecated scroll-snap-points-x
    325. Deprecated scroll-snap-points-y
    326. scroll-snap-type
    327. scrollbar-color
    328. scrollbar-width
    329. shape-image-threshold
    330. shape-margin
    331. shape-outside
    332. tab-size
    333. table-layout
    334. text-align
    335. text-align-last
    336. text-combine-upright
    337. text-decoration
    338. text-decoration-color
    339. text-decoration-line
    340. Experimental text-decoration-skip
    341. text-decoration-skip-ink
    342. text-decoration-style
    343. text-emphasis
    344. text-emphasis-color
    345. text-emphasis-position
    346. text-emphasis-style
    347. text-indent
    348. text-justify
    349. text-orientation
    350. text-overflow
    351. text-rendering
    352. text-shadow
    353. Experimental text-size-adjust
    354. text-transform
    355. text-underline-position
    356. top
    357. touch-action
    358. transform
    359. transform-box
    360. transform-origin
    361. transform-style
    362. transition
    363. transition-delay
    364. transition-duration
    365. transition-property
    366. transition-timing-function
    367. translate
    368. unicode-bidi
    369. user-select
    370. vertical-align
    371. visibility
    372. white-space
    373. widows
    374. width
    375. will-change
    376. word-break
    377. word-spacing
    378. writing-mode
    379. z-index
  9. Selectors
    1. Adjacent sibling combinator
    2. Attribute selectors
    3. Child combinator
    4. Class selectors
    5. Experimental Column combinator
    6. Descendant combinator
    7. General sibling combinator
    8. ID selectors
    9. Selector list
    10. Type selectors
    11. Universal selectors
  10. Pseudo-classes
    1. :active
    2. :any-link
    3. :autofill
    4. Experimental :blank
    5. :checked
    6. :default
    7. :defined
    8. :dir()
    9. :disabled
    10. :empty
    11. :enabled
    12. :first
    13. :first-child
    14. :first-of-type
    15. :focus
    16. :focus-visible
    17. :focus-within
    18. :fullscreen
    19. :has()
    20. :host
    21. :host-context()
    22. :host()
    23. :hover
    24. :in-range
    25. :indeterminate
    26. :invalid
    27. :is() (:matches(), :any())
    28. :lang()
    29. :last-child
    30. :last-of-type
    31. :left
    32. :link
    33. :not()
    34. :nth-child()
    35. :nth-last-child()
    36. :nth-last-of-type()
    37. :nth-of-type()
    38. :only-child
    39. :only-of-type
    40. :optional
    41. :out-of-range
    42. :paused
    43. :picture-in-picture
    44. :placeholder-shown
    45. :playing
    46. :read-only
    47. :read-write
    48. :required
    49. :right
    50. :root
    51. :scope
    52. :target
    53. :user-invalid (:-moz-ui-invalid)
    54. :user-valid (:-moz-ui-valid)
    55. :valid
    56. :visited
    57. :where()
    58. Privacy and the :visited selector
    59. Pseudo-classes
  11. Pseudo-elements
    1. ::after (:after)
    2. ::backdrop
    3. ::before (:before)
    4. ::cue
    5. ::cue-region
    6. ::file-selector-button
    7. ::first-letter (:first-letter)
    8. ::first-line (:first-line)
    9. Experimental ::grammar-error
    10. ::marker
    11. ::part()
    12. ::placeholder
    13. ::selection
    14. ::slotted()
    15. Experimental ::spelling-error
    16. ::target-text
    17. Pseudo-elements
  12. At-rules
    1. @charset
    2. @color-profile
    3. @counter-style
    4. Deprecated @document
    5. @font-face
    6. @font-feature-values
    7. @import
    8. @keyframes
    9. @layer
    10. @media
    11. @namespace
    12. @page
    13. Experimental @property
    14. Experimental @scroll-timeline
    15. @supports
    16. Deprecated @viewport
  13. Types
    1. <alpha-value>
    2. <angle>
    3. <angle-percentage>
    4. <basic-shape>
    5. <blend-mode>
    6. <color>
    7. CSS Functional Notation
    8. CSS data types
    9. <custom-ident>
    10. <dimension>
    11. <display-box>
    12. <display-inside>
    13. <display-internal>
    14. <display-legacy>
    15. <display-listitem>
    16. <display-outside>
    17. <easing-function>
    18. <filter-function>
    19. <flex>
    20. <frequency>
    21. <frequency-percentage>
    22. <gradient>
    23. <hex-color>
    24. <ident>
    25. <image>
    26. <integer>
    27. <length>
    28. <length-percentage>
    29. <number>
    30. <percentage>
    31. <position>
    32. <ratio>
    33. <resolution>
    34. Deprecated <shape>
    35. <string>
    36. <time>
    37. <time-percentage>
    38. <transform-function>
    39. <translation-value>
  14. Guides
  15. Animations
    1. Using CSS animations
  16. Backgrounds and Borders
    1. Using multiple backgrounds
    2. Resizing background images
  17. Box alignment
    1. Box alignment in block layout
    2. Box alignment in flexbox
    3. Box alignment in grid layout
    4. Box alignment in multi-column layout
  18. Box model
    1. Introduction to the CSS basic box model
    2. Mastering margin collapsing
  19. Columns
    1. Basic concepts of Multicol
    2. Styling columns
    3. Spanning and balancing
    4. Handling overflow in Multicol
    5. Content breaks in Multicol
  20. Conditional rules
    1. Using feature queries
  21. CSSOM view
    1. Coordinate systems
  22. Flexbox
    1. Basic concepts of Flexbox
    2. Comparison with other layout methods
    3. Aligning items in a flex container
    4. Ordering flex items
    5. Controlling flex item ratios
    6. Mastering wrapping of flex items
    7. Typical use cases of Flexbox
    8. Backwards compatibility of Flexbox
  23. Flow layout
    1. Block and Inline layout in normal flow
    2. In flow and Out of flow
    3. Formatting contexts explained
    4. Flow layout and writing modes
    5. Flow layout and overflow
  24. Fonts
    1. OpenType font features guide
    2. Variable fonts guide
  25. Grid
    1. Basics concepts of grid layout
    2. Relationship to other layout methods
    3. Line-based placement
    4. Grid template areas
    5. Layout using named grid lines
    6. Auto-placement in grid layout
    7. Box alignment in grid layout
    8. undefined
    9. Grid layout and accessibility
    10. Grid Layout and progressive enhancement
    11. Realizing common layouts using grids
    12. Subgrid
    13. Masonry layout
  26. Images
    1. Using CSS gradients
  27. Lists and counters
    1. Using CSS counters
    2. Consistent list indentation
  28. Logical properties
    1. Basic concepts
    2. Floating and positioning
    3. undefined
    4. Sizing
  29. Media queries
    1. Using media queries
    2. Using media queries for accessibility
    3. Testing media queries programmatically
  30. Positioning
    1. Understanding CSS z-index
  31. Scroll snap
    1. Basic concepts of scroll snap
    2. Browser compatibility and scroll snap
  32. Shapes
    1. Overview of shapes
    2. Shapes from box values
    3. Basic shapes
    4. Shapes from images
  33. Text
    1. Wrapping and breaking text
  34. Transforms
    1. Using transforms
  35. Transitions
    1. Using transitions
  36. Layout cookbook
    1. Media objects
    2. Columns
    3. Center an element
    4. Sticky footers
    5. Split navigation
    6. Breadcrumb navigation
    7. List group with badges
    8. Pagination
    9. Card
    10. Grid wrapper
  37. Tools
    1. Color picker
    2. Box shadow generator
    3. Border image generator

In this article

  • Reference
  • Specifications

CSS Table

CSS Table is a CSS module that defines how to lay out table data.

Reference

Properties

  • border-collapse
  • border-spacing
  • caption-side
  • empty-cells
  • table-layout
  • vertical-align

Specifications

Specification
Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Feb 22, 2022, by MDN contributors

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers

Support

  • Product help
  • Report a page issue
  • Report a site issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2022 by individual mozilla.org contributors. Content available under a Creative Commons license.