CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Table Styling in CSS

Table Styling



Table styling involves many different properties. They are used to style the tables.


Table Properties are:-


  • border-collapse (it specifies whether the table borders are collapsed into a single border or separated as default)
  • border-spacing (used for spacing)
  • caption-side (it specifies the position of a table caption)
  • empty-cells (it specifies whether or not to display borders and background on empty cells in a table)
  • table-layout (it specifies how the width of table columns is calculated)




Its syntax is:-

< style >


table-layout: auto| fixed| initial| inherit;


< /style >


Further Explanation:-


Value Description
auto Browsers use an automatic table layout algorithm.
fixed Sets a fixed table layout algorithm. The table and column widths are set by the widths of the table and col or by the width of the first row of cells.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Advance

All Sections related to CSS