views:

114

answers:

1

Hi, here's my table:

HTML viewable at jsfiddle.net (it's a lot of code to post here)

The method to change the column width escapes me, I'd like the "Produkt" column to be wider.

Thanks.

+1  A: 

Add this attribute to your header of that cell, it should force the entire column to be at least 100px:

<th id="produkttext" style="width: 100px;">Produkt</th>
ILMV
Doesn't seem to be working, I shall see if there are any other CSS rules overriding it.
Kyle Sevenoaks
Hmmm, okay then. Have a look at this page explaining the `<td>` width attribute --> http://www.w3schools.com/TAGS/att_td_width.asp
ILMV
Nothing is working, have looked through and found no inherited widths, add `.mytable td{ width:16%;}` and change the width fro produkttext and pris. Not working so well.
Kyle Sevenoaks
Can you verify that your entire HTML / CSS validates through the w3c validator?
ILMV
Kyle Sevenoaks
Hmmmm, okay fair enough. I might be able to have a closer look a bit later on.
ILMV
Thanks. I'll fix something else then :)
Kyle Sevenoaks
CSS validator: http://jigsaw.w3.org/css-validator/ (brace for impact)
ANeves
Did you get it sorted in the end Kyle?
ILMV