![]() | |
#1
| |||
| |||
|
|
In my simple XHTML doc the height property isn't being honored for the table when I omit the xml declaration in IE6. |
#2
| |||
| |||
|
|
beveled edges wrote: In my simple XHTML doc the height property isn't being honored for the table when I omit the xml declaration in IE6. This is because the presence of the XML prolog forces IE6 out of standards mode and into quirks mode. When it is missing (and IE sees what it considers to be a Doctype that means the author of the document knows what they are doing) IE goes into standards mode. I suggest you look up exactly what height: 100% should do in CSS when the parent element doesn't have a specified height. -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/ |
#3
| |||
| |||
|
|
How can you check which mode IE is parsing HTML in? |
|
Is there a DOM property or any other way to programmatically access such information? |
#4
| |||
| |||
|
|
This will ensure that the width attribute is ignored in <table elements, as it should. |
![]() |
| Thread Tools | |
| Display Modes | |
| |