I’ve just realised that a site that I made in Freeway 4 and then imported in Freeway 5 no longer works correctly in IE 6 on Windows. It’s a site where the length of each page is decided by the content: I removed the “height” attribute from the div so that it adapts in size to whatever it contains.
When the site was in Freeway 4, it worked fine on every browser I could find, both on Mac OS and Windows. The Freeway 5 version still works fine on all my Mac browsers, but in IE6 on Windows, it is no longer possible to scroll to the end of most pages: there simply isn’t a scroll bar.
Does anybody know what could be causing this, and how I could cure it?
Update: I’ve found out what it happening. The problem is that Freeway now adds “position:relative” to the PageDiv. IE has problems coping with this, which are explained at What's this about? - Position Is Everything
Now I have to work out how I can either get rid of the the “position:relative” style for the PageDiv, or apply the hack described on the page I’ve linked to.
I’ll continue talking to myself: I’ve solved the problem by integrating the hack into the stylesheet, creating a style with the tag #PageDiv and attribute “Height:1%”
I still had to go in a re-add my #PageDiv height to 100% even in 5.1.1. In fact I created a style on the side called #PageDiv and set the height to 100%. I noticed the output code says min-height: 100% is that “understandable” across older browsers as meaning height: 100%?
When i loaded up my site in IE6 it wouldn’t scroll till I added that into my style-sheet.
Joe, thanks for this information. I’m perplexed: could you tell me how the fix works? I downloaded 5.1.1 and re-published the site, but I haven’t uploaded it yet, since I can’t see any essential difference between the code published from 5.1.1 and the code published from 5.1. In both cases, I see the line:
There is also nothing I can see in the ie6.css file that would influence this.
What am I missing here?
On 17 May. 2008, 8:43 am, Joe Billings wrote:
The fix should be in the latest version of Freeway.
Old and broken IE browsers all skip min-height entirely, and treat
height as if it was min-height. To have belt-and-braces support for
those browsers, it is necessary to do
height: auto !important;
height: 100%;
min-height: 100% !important;
in that order.
Those browsers don’t understand !important either, so you get the
fixed behavior.
Walter
On May 17, 2008, at 5:16 AM, Mitchell wrote:
I still had to go in a re-add my #PageDiv height to 100% even in
5.1.1. In fact I created a style on the side called #PageDiv and
set the height to 100%. I noticed the output code says min-height:
100% is that “understandable” across older browsers as meaning
height: 100%?
When i loaded up my site in IE6 it wouldn’t scroll till I added
that into my style-sheet.
The new changes (in 5.1 and up) are min-height:100% inline in the
PageDiv and
div#PageDiv {height:100%}
in the ie6.css file.
If this doesn’t fix your problem in ie6 then could you sned your file
through please.
Thanks
Joe
On 17 May 2008, at 15:23, Michael wrote:
Joe, thanks for this information. I’m perplexed: could you tell me
how the fix works? I downloaded 5.1.1 and re-published the site, but
I haven’t uploaded it yet, since I can’t see any essential
difference between the code published from 5.1.1 and the code
published from 5.1. In both cases, I see the line:
There is also nothing I can see in the ie6.css file that would
influence this.
What am I missing here?
On 17 May. 2008, 8:43 am, Joe Billings wrote:
The fix should be in the latest version of Freeway.
Is there a program or something that can show me if IE6 is using the ie6.css stylesheet. Because I’d also like to know if it’s using the pngbehavior.htc file because my transparent-PNG’s aren’t transparent in IE6, but they do work in IE7.
I’ve found out what happened: Freeway 5.1 and 5.1.1 did not automatically change the ie6.css file from the previous version. Here’s the contents of the ie6 file, as originally published from Freeway 5.1.1:
Apparently Freeway 5.1 did not check the contents of this file to see if they needed updating. I trashed the file and made Freeway 5.1.1 publish the site again: now the file looks like this: