.top { margin: 0px; z-index: auto; position: fixed; font-family: cursive; border: 1px solid gray; padding-top: 10px; padding-bottom: 10px; line-height: 23px; height: 40px; width: 100%; background-color: white; } .bottom { background-color:#D5D8DE; border:1px solid #C0C3C9; text-align:center; z-index:999; position:fixed; bottom:0; left:0; width:100%; height:40px; line-height:40px; /* for IE6 */ _position:absolute; _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); overflow:visible; }