I am using this code listing:
div#menuBar {
position: absolute;
left: 10px;
top: 140px;
padding-left: 0px;
float: left;
margin: 0px 0px 60px 0px;
width: 170px;
text-align: left;
color: #000000;
background-color: #ffffff;
}
div#main {
width: auto;
background-color: #cccccc;
color: #000000;
margin-top: 10px;
margin-left: 200px;
margin-right: 4%;
}
div#footer {
margin: 10px 0px 0px 0px;
color: #000000;
font-size: 8pt;
font-family: arial,helvetica,sans-serif;
font-weight: normal;
background-color: transparent;
padding-bottom: 5px;
text-align: center;
width: 100%;
height: 30px;
}
Inside my HTML first comes menuBar div, later main and last footer...So footer is placed according to main (fixed-relative to it since it is default unless otherwise mentioned)..
Here comes the problem (i guess common and simple but i haven't yet figured what is to blame): when the content of main div is short, footer "jumps" over the menuBar messing the design...
how can i instruct the layer footer to position itself according to menuBar's height + a value..If possible, i want to maintain the absolute positioning of the menubar unless it is impossible to do so...
Perhaps something to this effect:
document.getElementId("footer").offsetTop = <code here>
A bit of help will be greatly appreciated by a newbie like me...
a... where can i find a DOM reference that could point the methods, attributes etc .....??
Thank u in advance!