Table Disobeys W3C Box Model, Ie8 Ignores Fixed Table Width !

Posted by Axel Myers on Stack Overflow See other posts from Stack Overflow or by Axel Myers
Published on 2010-04-12T09:46:43Z Indexed on 2010/04/12 10:33 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

Hi, I'm having hard time with tables and column widths.

Update: I'm using XHTML Strict 1.0.

The page is: http://www.pro-turk.net/try

The first problem I have is, I have a column with a fixed width of 100px and 4px padding, but it disobeys my padding depending on the value. The column width (as the distance between two borders according to W3C Box Model) is 156 px even if padding is 0 or 4. Only the position of the text changes.

According to W3C Box Model ( available at www.pro-turk.net/box_model.png ), borders and paddings aren't included in WIDTH attribute, so why does it render wrongly ?

The second problem is, when you look the page I gave with IE8, the first cell in the second row has 150px fixed width, but ie shows it about 50% of the total table width regardless of what i say.

© Stack Overflow or respective owner

Related posts about w3c

Related posts about box