J
joshthomas99
Hello,
Yes, I've spent hours reading through all the old postings and searched
the net - but couldnt find a solution to the 100% height problem with
nested divs. The first div does a 100% correctly (IE), but when I want
the second div to go from 100px to the bottom, it becomes huge if you
set it to 100% and generates a scroll bar. Any help would be gratefully
appreciated!
My code (For IE) is as follows:
<html>
<head>
<style type="text/css">
div.whole {
width:100%;
height: 100%;
border:3px solid green;
}
div.topbar {
height:100px;
width:100%;}
div.lower {
border:5px solid red;
background-image: url('media/left back.gif');
background-repeat: repeat-y;
height: 100%;
}
</style>
</head>
<body>
<div class="whole">
<div class="topbar">
Top bar for logo
</div>
<div class="lower">
Lower section for main text<br><br>
</div>
</div>
</body>
</html>
Thanks loads, Josh
Yes, I've spent hours reading through all the old postings and searched
the net - but couldnt find a solution to the 100% height problem with
nested divs. The first div does a 100% correctly (IE), but when I want
the second div to go from 100px to the bottom, it becomes huge if you
set it to 100% and generates a scroll bar. Any help would be gratefully
appreciated!
My code (For IE) is as follows:
<html>
<head>
<style type="text/css">
div.whole {
width:100%;
height: 100%;
border:3px solid green;
}
div.topbar {
height:100px;
width:100%;}
div.lower {
border:5px solid red;
background-image: url('media/left back.gif');
background-repeat: repeat-y;
height: 100%;
}
</style>
</head>
<body>
<div class="whole">
<div class="topbar">
Top bar for logo
</div>
<div class="lower">
Lower section for main text<br><br>
</div>
</div>
</body>
</html>
Thanks loads, Josh