table-layout

The table-layout CSS property defines the algorithm to be used to layout the table cells, rows, and columns.

Values

auto
An automatic table layout algorithm is commonly used by most browsers for table layout. The width of the table and its cells depends on the content thereof.
fixed
Table and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.
 
Under the “fixed” layout method, the entire table can be rendered once the first table row has been downloaded and analyzed. This can speed up rendering time over the “automatic” layout method, but subsequent cell content may not fit in the column widths provided. Any cell that has content that overflows uses the overflow property to determine whether to clip the overflow content.

<!DOCTYPE html>
<html>
    <head>
        <style>
            table.ex1 {
                table-layout: auto
            }
            
            table.ex2 {
                table-layout: fixed
            }
        </style>
    </head>
    <body>
        <table class="ex1" border="1" width="100%">
            <tr>
                <td width="5%">
                    a
                </td>
                <td width="95%">
                    2
                </td>
            </tr>
        </table>
        <br>
        <table class="ex2" border="1" width="100%">
            <tr>
                <td width="5%">
                    3
                </td>
                <td width="95%">
                    4
                </td>
            </tr>
        </table>
    </body>
</html>