Re: Two display problems between IE and FF
- From: Tony <tony23@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 10:47:51 -0700
VK wrote:
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.
Disappearing content when a clear follows a float in IE = "Peekaboo bug"
See http://www.positioniseverything.net/explorer/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.
.
- Follow-Ups:
- Re: Two display problems between IE and FF
- From: Alan Silver
- Re: Two display problems between IE and FF
- References:
- Two display problems between IE and FF
- From: Alan Silver
- Re: Two display problems between IE and FF
- From: Alan Silver
- Re: Two display problems between IE and FF
- From: VK
- Two display problems between IE and FF
- Prev by Date: Re: Problems with <ul> margin/padding in Firefox
- Next by Date: Re: Two display problems between IE and FF
- Previous by thread: Re: Two display problems between IE and FF
- Next by thread: Re: Two display problems between IE and FF
- Index(es):
Relevant Pages
|
Loading