Hi,
Funnily enough IE6 and Mozilla will have the same display in quirks mode and standards mode . In quirks mode the height will be 100% but in standards mode the height will collapse.
As you are using the xml prologue (the first line of your code) there's a major bug in IE6 that sends IE6 into quirks mode when it meets the prologue. The answer is to leave it out as it is optional ( just ensure you have the character encoding in the meta tag).
However all this will do is to make both display the same i.e. a collapsed table. This is how xhtml the xhtml spec meant it to be as tables are used for tabular data and not layout. If you take out the doctype then Mozilla will revert to quirks mode and you will get a full size table.
I don't think there's a complete solution other than not to use tables for layout but I think this code will make IE6 and Mozilla 1.2. expand the table to 100% (although Opera and other browsers could have different results.)
Code:
<style type="text/css">
html, body, table {
margin: 0; padding: 0;
width: 100%; height: 100%;
}
</style>
Then get rid of the inline style in your table tag.
Sorry I couldn't find a better solution.
Paul
Bookmarks