I have a page that is not displaying height correctly.
I have the body, html and everything else set to height: 100%; but when I look at the page, the height is getting stopped at the bottom of the browser window, and if I scroll down the div background are not continuing down.
One of my div's has content the extend below the base, and if I scroll that content is their, but if I inspect the element with firebug it tells me the height is on as tall as the browser window, in my current case '568' when it should be closer to 800px...
I'm not really sure what is broken or not working. The HTML has been validated, no issues. Here is the CSS in question:
I left out most of the classes and font styling, the above is everything that should be going from top to bottom. And here is how the HTML is structured:
I have the body, html and everything else set to height: 100%; but when I look at the page, the height is getting stopped at the bottom of the browser window, and if I scroll down the div background are not continuing down.
One of my div's has content the extend below the base, and if I scroll that content is their, but if I inspect the element with firebug it tells me the height is on as tall as the browser window, in my current case '568' when it should be closer to 800px...
I'm not really sure what is broken or not working. The HTML has been validated, no issues. Here is the CSS in question:
Code:
BODY {
background:url(/html//civis/threads/css-height-problems.1126786/post-20966008/images/backgroundlines.gif) repeat;
position:relative;
height:100%;
text-align:left;
margin:0px;
padding:0;
}
html {
height:100%;
}
#wrapper {
position:relative;
height:100%;
width:1098px;
margin-left:0px;
}
#container {
background-color:#fff;
background-image:url(/html//civis/threads/css-height-problems.1126786/post-20966008/images/fadelines.gif);
background-repeat:repeat-y;
position:relative;
top:0px;
height:100%;
width:1098px;
}
#work {
position:relative;
margin-top:0px;
margin-left:225px;
text-align:left;
height:100%;
}
#sideBar {
position: relative;
min-height: 100%;
height: 100%;
width: 217px;
background-color:#FFF;
top: 0px;
left: 0px;
float: left;
}
.shadow-right {
background: url(/html//civis/threads/css-height-problems.1126786/post-20966008/images/rightSide.png) repeat-y;
position: relatvie;
height: 100%;
left: 210px;
top: 0px;
width: 7px;
margin-top: 0px;
float: right;
}
.sideBar-lines {
background-image: url(/html//civis/threads/css-height-problems.1126786/post-20966008/images/backgroundlines.gif);
background-repeat: repeat;
position: relative;
float: left;
left: 0px;
top: 0px;
width: 210px;
margin-top: 0px;
min-height: 100%;
}
I left out most of the classes and font styling, the above is everything that should be going from top to bottom. And here is how the HTML is structured:
Code:
<body>
<div id="wrapper">
<div id="container">
<div id="sideBar">
<div class="shadow-right"> </div>
<div class="sideBar-lines">
Content
</div>
</div>
<div id="work">
Content
</div>
</div>
</div>
</body>