SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : HTML and CSS :

Previous DiscussionNext Discussion
 the well known height bug in firefox

ok, so what happens when html height is 100%, body height is 100%, every singly height i can find is 100%! but in firefox, 100% STILL remains only the height of the viewing window, so once you scroll down the pretty little background colours disappear?

can anybody offer any help as to why my left and right side panels don't stretch ALL the way down in firefox, and instead fill only one screenful?

I've tried using min-height to ff and using /height to give a different height to ie. but a) this doesn't work and b) i don't really understand the logic behind it so i figure it's best if i don't use it!

Doctype I'm using: <!doctype html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
(I use this one for no particular reason - it's just what I normally work with).

css:

<style>
html {
 height: 100%;
}
body {
 margin: 0;
 padding: 0;
 font: 75% geneva, arial, helvetica, sans-serif;
 color: #333;
 height:100%;
}
.container { /* contains all 3 divs */
 width: 100%;
 height: 100%;
}
.left { /* side panel on the left, contains a background image */
 width:5%;
 min-height: 100%;
 /height: 100%;
 float: left;
 position: relative;
 background-color: red;
 background-image: url(images/bgPanelSides.gif);
 background-repeat: repeat-y;
 background-position: right;
}
.leftTop { /*sits at top of left side panel, has a bg image which matches the height of the header */
 height: 157px;
 background-image: url(images/bgPanelTop.gif);
 background-repeat: repeat-x;
 width: 100%;
 position:absolute;
 top: 0;
 left: 0;
}
.right { /*side panel on right */
 width:5%;
 min-height: 100%;
 /height: 100%;
 float: left;
 position: relative;
 background-color: red;
 background-image: url(images/bgPanelSides.gif);
 background-repeat: repeat-y;
 background-position: left;
}
.rightTop { /*sits at top of right panel, contains a bg that matches the header */
 height: 157px;
 background-image: url(images/bgPanelTop.gif);
 background-repeat: repeat-x;
 width: 100%;
 position:absolute;
 top: 0;
 right: 0;
}
.centre { /*all my text sits in here */
 width: 90%;
 background-color:blue;
 float: left;
 position: relative;
}
</style>

HTML

<div class=container>
 <div class="left">
  <div class="leftTop"></div>
 </div>
 <div class="centre">This is where all my text etc goes </div>
 <div class="right">
  <div class="rightTop"></div>
 </div>
</div>

 

Started By meriwa on Sep 6, 2005 at 2:05:39 AM

17 Response(s) | Reply

View All Replies | Goto Page: 3 2 1
Locnar on Dec 29, 2006 at 9:08:58 PM

This issue is driving me absolutely NUTS!! I have tried everything here in addition to everything else I could find online and nothing works.

Any help would be much appreciated!!

http://www.multisourcingchina.com/city

OR (having some DNS issues w/Yahoo)

http://cs2.simplehost.com/~harveym/city/

Thank you!

Locnar


View All Replies | Goto Page: 3 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.