Previous Message
Next Message

IE5/Mac box model problems within TD elements

Sent by Philippe Wittenbergh on 29 December 2004 02:02


On 29 Dec 2004, at 4:20 am, Peter-Paul Koch wrote:

>> It seems that IE 5.2 for Mac OS X has some problems with TD elements.
>> Specifically, it acts similar to the IE5/WIN box model when dealing
>> with table cells. Here's the scenario.
>
> Actually the bug is more widespread than this: While TD's in Explorer
> Mac are locked in the traditional box model, in Explorer 6 Win,
> Mozilla and Opera they're locked in the W3C box model, even when I add
> code to force the traditional border box model.
>
> http://www.quirksmode.org/css/tests/boxtd_strict.html
> http://www.quirksmode.org/css/tests/boxtd_quirks.html
>
> Therefore it's completely impossible to declare a box model for TD's,
> something I wasn't yet aware of.

The puzzling thing is, when you declare a width for column by using the 
<col /> tag (see my previous message in this thread), all browsers 
correctly size the <td> based on the this, independently of any padding 
declared on those <td>. Apparently, not so IE6 Win: it takes the <col 
/> width, and adds the padding to compute the width of the <td>.

Given
table {border-collapse:collapse; width:800px;}
col {width:400px}
td.first {padding:0 20px}
<table>
<colgroup><col /><col /></colgroup>
<tr>
	<td class="first"></td><td></td>
</tr>
</table>

You end up with a 440px wide table cell in IE6. This is not how the 
whole table thing should work, according to the CSS 2.1/HTML 4.01 
specs.
(All other browsers compute the width of the <td> to 400px.)


Philippe
---/---
Philippe Wittenbergh
now live : <http://emps.l-c-n.com/>
code | design | web projects : <http://www.l-c-n.com/>
IE5 Mac bugs and oddities : <http://www.l-c-n.com/IE5tests/>

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: