Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE adds gap in fixed layout

Status
Not open for further replies.

luthierbytrade

Technical User
Feb 20, 2005
5
US
Hi-

I can't seem to figure out why my fixed layout looks wrong in IE.

The page is here:

and the CSS is here:

--
The site seems fine in most recent browsers except IE on PC. It adds a gap between the top header and the body. None of the other browsers I've checked do this.

Any suggestions?
 
I couldn't reach the page as well but would just like to ask you if you are using a complete and valid doctype. Not having one could cause IE to misbehave (even more than it usually does).
 
Wouldn't you know as soon as I send in a thread my webserver would get hacked. I waited until they got things up again before posting again. I sure hope it doesn't go down again while you try accessing it.
Thanks for trying.

Vragabond...you may recognize this site. I had trouble with the links in IE MAC. I've decided to not worry about that one since IE MAC is a dead horse now and it appears there's no fix for that. But the gap between the header and body eludes me.
 
Your website crashed again while I was working on it. The main reason for the weird behaviour was [tt]position: fixed;[/tt] in your #header style. That property is not correctly identified by IE and that is why IE mocked up. BTW, did you really want to have it fixed? Fixed means that it hovers at the same place in the viewport while scrolling. To see the effect, open the page in a Gecko browser, make the window really small and scroll. Header will always be on the page and will hover over other elements. If you remove everything but the width and height from header and subsequently remove margin-top: 90px from #wrapper, you should be more or less ok.
Code:
#header {
	background-image: url(../imgs/watercolor.jpg);
	height: 115px;
	width: 100%;
}
I have been saying this a lot lately but I will stress it again. Don't try to do stuff that is way over your head. You have so many things in your stylesheet and I am pretty sure you don't know what all of it is doing. You're solving simple errors by implementing more errors which will eventually make your site completely impossible to maintain.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top