![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Alan Silver wrote: I'm still left with the second problem though (see below) and would really appreciate any help. I'm pretty sure this is not the peekaboo bug as I tried the usual suggestions for that and none of them helped. The problem appears in IE6 and IE7, but not in FF 1.0.7 or Opera 8.54 Any ideas? TIA 2) If you look at the page in IE, the header section does not have its content displayed. In FF it shows up fine. I have discovered that the problem is caused by having "clear:both" in the #footer. I have no idea why the one affects the other, but it does. If I remove this line from the CSS, then IE shows the header correctly, but (oddly) still has the footer clearing both other bits. FF does not have the footer clearing, and displays it in the little space between the links and the main content. How can I have it so that the footer appears cleared below the links and content, but does not cause the header content to disappear? I have no idea why IE does that, I saw some mention of "disappearing" content when clear is used too extensively. So me real CSS expert may comment on that. |
#12
| ||||
| ||||
|
|
Disappearing content when a clear follows a float in IE = "Peekaboo bug" See http://www.positioniseverything.net/.../peekaboo.html But this doesn't look like the peekaboo bug. |
|
Doing a little digging: |
|
First, remove position:absolute from #header - this will allow the header to be visible. It appears at the bottom of the page, just above the footer. Then move the header <div> up to the top of the page, just before <div id="pagecontent" |
|
For #pagecontent, change margin: 70px 0 0 0; to margin: 0px; Do the same for #toplevellinks I did exactly those changes & it works fine for me. There IS a difference of 1 or 2 pixels between the old layout & new in Firefox - but that's easily fixed by tweaking the borders. |
#13
| |||
| |||
|
|
OK, stop right here. The reason I used absolute positioning for the header was so that I could put the HTML down the bottom of the page. I need this for various reasons, including search engine optimisation. |
|
For #pagecontent, change margin: 70px 0 0 0; to margin: 0px; Do the same for #toplevellinks I did exactly those changes & it works fine for me. There IS a difference of 1 or 2 pixels between the old layout & new in Firefox - but that's easily fixed by tweaking the borders. Yup, but that doesn't solve my problem. I really need to have the header stuff where it was, but have IE display it. Thanks for the reply, and ideas how I can fix this without moving the HTML? |
#14
| |||
| |||
|
|
Yup, but that doesn't solve my problem. I really need to have the header stuff where it was, but have IE display it. Thanks for the reply, and ideas how I can fix this without moving the HTML? |
#15
| |||
| |||
|
|
it turns out that it IS the peekaboo bug - just a really insidious version of it. Removing the "clear:both" from the footer causes it to display correctly in IE (which is why I say it is peekaboo). |
|
Obviously, that won't do for Firefox, which needs the clear:both so the footer displays in the right place. Is there any reason you can't/won't use a hack? |
|
Because I was able to fix this by using a simple hack: From #footer, remove 'clear:both;' After the close of #footer, add the following: html>body #footer { clear: both; } Tested & works perfectly in IE6, Firefox, Netscape (7 I think) and Opera 8. |
#16
| |||
| |||
|
|
Tested & works perfectly in IE6, Firefox, Netscape (7 I think) and Opera 8. Thanks, I'll check it in IE7 as that is where the danger may lie. Most of these hacks come from poor support for various CSS features in IE. Given that IE7 is going to fix some, but not all of these, this hack is only going to keep working if IE7 either doesn't support the ">" operator (which I think it does), or if it doesn't have peekaboo (which I don't know). |
#17
| |||
| |||
|
|
this hack is only going to keep working if IE7 either doesn't support the ">" operator (which I think it does), or if it doesn't have peekaboo (which I don't know). |
#18
| |||
| |||
|
|
It is possible that I have discovered a hitherto undiscovered example of peekaboo and that IE7 hasn't fixed it, but that seems unlikely. |
#19
| |||
| |||
|
|
In article <El66gbfldBdEFwxa (AT) nospamthankyou (DOT) spam>, Alan Silver alan-silver (AT) nospam (DOT) thanx.invalid> writes Tested & works perfectly in IE6, Firefox, Netscape (7 I think) and Opera 8. Thanks, I'll check it in IE7 as that is where the danger may lie. Most of these hacks come from poor support for various CSS features in IE. Given that IE7 is going to fix some, but not all of these, this hack is only going to keep working if IE7 either doesn't support the ">" operator (which I think it does), or if it doesn't have peekaboo (which I don't know). And it failed!! Ho hum. It seems that IE7 still suffers from peekaboo, although it now supports ">". Any other ideas? Thanks again |
#20
| |||
| |||
|
|
In article <El66gbfldBdEFwxa (AT) nospamthankyou (DOT) spam>, Alan Silver alan-silver (AT) nospam (DOT) thanx.invalid> writes this hack is only going to keep working if IE7 either doesn't support the ">" operator (which I think it does), or if it doesn't have peekaboo (which I don't know). OK, to follow up on my previous post (which hasn't shown up here yet), all the reports I could find on the web indicate that IE7 *has* fixed peekaboo, which means either they are wrong, or this bug isn't peekaboo after all. |
![]() |
| Thread Tools | |
| Display Modes | |
| |