Web4College

table-layout property

src

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;
Try it

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;
Try it

Applicable to

It applies to table elements.