I am having a bit of issue with a div causing scroll bars when height set to 100%.
Right now, my page content looks like;
<body>
<hr>
<div id="content">
<div id="heading">
</div>
</div>
</body>
The problem is that the HR is 5px, and the Content is 100% of body height. So, since it is 100% of page height, it is going below the HR and creating 5px so that a scrollbar is being made which I want to avoid..
My question is, how do I make it height 100% without it thinking that it needs to be 100%pageheight and not including the HR in the page height?
Thanks.
This kind of layout is best accomplished using absolute positioning. Here’s an example, using your HTML: http://jsfiddle.net/7KGmZ/
css: