table-layout property

Description

CSS table-layout represents whether the the width of table columns should be fixed or automatically calculated.

Syntax

table-layout : auto | fixed

Property values

autoDefault

In this auto mode, the width of table columns depends upon the content within table cells.

table-layout: auto;

fixed

In this fixed mode, the width of table columns does not depend upon the the content of table cells.

The width of columns is calculated from the size of cells present in the first table row. In this case, equal share of space is distributed among the table cells.

table-layout: fixed;

Applicable to

It applies to table elements.

#CSS digger
Was this article helpful?

 
Name Aggregate Degree
Chris 70% BCS
James 80% BIT
John 90% BSE
×

Ctrl+D