Michael Phelps Michael Phelps - 6 months ago 9
HTML Question

Make columns of equal width in <table>

How to make columns of equal width in ?

Dynamically changing the number of columns.

Today I have 13 columns. Tomorrow will be raced 16. All do not particularly want to recalculate.

Answer

I think that this will do the trick:

table{
    table-layout: fixed;
    width: 300px;
}
Comments