PDA

View Full Version : Equal cell widths


Chamark
05-05-2006, 11:45 AM
Is there an easy way to create a table with say 5 columns and keep the columns equal in width?

domedia
05-05-2006, 01:07 PM
Set the width for each td 1/5 of the width of the table.

johnph77
05-05-2006, 02:42 PM
Expanding on domedia's response, I've used

<th (or td) width="20%">

in the top row of cells only for the entire table.

In css, use

th(d).equal
{
width: 20%;
}

then in the top row of the table use

td class=equal.