I am trying to create a website on which I have a title bar and page footer in fixed positions, i.e. The title bar is always above and below always below.
This created a problem in that I needed to push the content on the page up so that the page footer did not overlap the content. I need to add some space to the bottom of the content so that the match does not happen when the user scrolls to the bottom of the page. I tried to add the margin-bottom css property to the bottom of the DIV so that some space was added at the bottom of the page, this worked for the topmost DIV using the margin-top css property, but not for the bottom.
This is the basic structure of my site without content:
<html> <head> </head> <body> <div class="CONTAINER"> <div class="PAGENAVBAR"> </div> <div class='CATEGORYNAVBAR'> </div> <div class='PAGE_CONTENT'> <div class="LEFTCONTAINER"> </div> <div class="RIGHTCONTAINER"> </div> </div> <div class="PAGEFOOTER"> </div> </div> </body>
Can anyone suggest a method to achieve this effect?
Jono_2007
source share