dive into mark

You are here: dive into markArchivesSeptember 2002IE 6 workaround discovered

Tuesday, September 3, 2002

IE 6 workaround discovered

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’;
}
}

Filed under , , ,

Respond privately

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.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim