Reputation: 14604
I have the following table in HTML
https://jsfiddle.net/xc1fm5uL/
but I'm unable to make the column widths fixed. I tried both
<col width="300">
<td width="300">
Anything I'm missing here?
Upvotes: 0
Views: 54
Reputation: 325
You can do it theses ways :
<td width="300px">
<td style="width:300px;">
But the best way is doing it in Css:
.class{width:300px;}
Hope it helps you
Edit:
both th and td should have the same width.
Upvotes: 1
Reputation: 1158
Try this
table-layout: fixed;
read more on this @ css3 tricks for fix table
Upvotes: 1