views:

53

answers:

2

I have a table without fixed layout, which means width of column depends on cell content. Now I need to fix width for one column. Say there is minimum width for this column even though all cells are empty.

Or I can extend width for certain column.

Plz advise if this is doable and how to do it.

Thank you.

A: 

Plz advise if this is doable and how to do it.

Just specify the width for that particular td:

<td width="200"></td>

This will make only that td's width fixed.

Sarfraz
It works fine for plain table. But it doesn't work for mvc, which i need to render each cell separately in a loop.At least it works for plain html table. Thank you.
Jason Li
A: 

Give that td a class:

td special { width:200px; } 
Ken