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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

100% height menu filler

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
hi,

have a left side menu and would like a filler at the bottom to fill the space if content is taller than the menu.
should be easy but cannot get to work in IE7 - please advise thankyou

css
Code:
{
padding: 0;
margin: 0;
border: 0;
}
body, html {
color: #000000; 
font-family:Arial;
background-color: #E9E9E9;
padding:0;
margin:0; 
height:100%;
font-size:14px;
}

#header {
width:100%; 
height:198px; 
float:left;
background-image:url(images/header.png); 
background-repeat:repeat-x;
}

#layoutouter {
width:100%;
}

#layoutinner {
width:98.8%;
margin-left:14px;
background-color:#FFFFFF;
height:100%;
overflow:auto;
}

#content {
float:left;
background-color:#FFFFFF;
}

#contentinner {
float:left;
background-color:#FFFFFF;
width:805px;
padding-bottom:20px;
}

#menu {
width:161px;
background-color:#4E4E4E;
padding-left:6px;
padding-top:2px;
float:left;
height:100%;
border:#FF0000 1px solid;
}

#menufiller {
background-image:url(images/menuFILLER.gif); 
background-repeat:repeat-y;
height:100%; 
width:155px;
}

#footer {
width:100%; 
height:33px; 
clear:both;
}

html
Code:
<body>
<div id="header"></div>

<div id="layoutouter">
<div id="layoutinner">
<div id="menu">
<div class="menuitem">ITEM1</div>
<div class="menuitem">ITEM2</div>
<div class="menuitem">ITEM3</div>

<!--THIS IS THE DIV I NEED TO STRETCH TO FILL HEIGHT-->
<div id="menufiller"></div>

</div>

<div id="content">
<div id="contentinner">Content is king</div>
</div>

</div>
</div>

<div id="footer"></div

</body>
</html>

 
hi - this suggests putting your menu background as the backg for the body of the page.
tried this but as my menu div is on top I cant see the image behind it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top