[thelist] IE5 CSS bug/JS fix

Sarah Sweeney mr.sanders at designshift.com
Thu Jun 10 14:28:20 CDT 2004

fstorr wrote:
> I've encountered an annoying CSS bug in IE5.0 (no, really).  I've got a 
> background image attached to the <html> tag, which works fine in IE6, 
> Moz etc.  In IE5, for some reason the image won't load unless something 
> is done to the browser.  That something can be anything: scrolling, 
> re-sizing, alt-tabbing, anything.  I need an IE5 fix for about 4 months 
> (my company is upgrading to IE6 as we speak), and I've run out of ideas 
> on hacking the CSS, I figured I'd just use some JS to re-size the 
> browser by 1px to force the image to appear.  A very dirty, nasty 
> solution but (unless anyone knows of this CSS bug and a fix for it), I'm 
> stuck.
> I can't work out the JS needed to do this in IE5.  I need to get the 
> height of the user's current browser window and shrink it by 1px.  It 
> has to be possible!

Can you show us some code, or send a URL? I or someone else might be 
able to suggest a more elegant solution, if we can take a look at the code.

Sarah Sweeney
Web Developer & Programmer
Portfolio :: http://sarah.designshift.com
Blog, etc :: http://hardedge.ca

More information about the thelist mailing list