Jeffrey Zeldman: CSS layout revisited. Zeldman reports that Aaron Boodman has developed a Javascript workaround for IE 6’s annoying habit of cutting off CSS-laid-out pages in midstream. I can’t find a link to a more detailed explanation, but here is the code that Zeldman is now using on A List Apart, as found in his global Javascript file:
if (document.all && window.attachEvent) window.attachEvent("onload", fixWinIE);
function fixWinIE() {
if (document.body.scrollHeight < document.all.content.offsetHeight) {
document.all.content.style.display = 'block';
}
}
§
I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)
§
© 2001–9 Mark Pilgrim