CSS Table Size

Table Width and Height

The width and height of a table are defined by the width and height properties.

The example below sets the width of the table to 100%, and the height of the <th> elements to 70px:

Example

Output :

To create a table that should only span half the page, use width: 50%:

Example

Output :