06. september 2003 - 15:19
Der er
11 kommentarer og 1 løsning
footer vil ikke flyde med div-boksen der er ovenfor
Jeg kan ikke få min div til konstant at være under den div der er ovenfor. Det skal se således ud: --------- | DIV1 | --------- --------- | DIV2 | --------- Men den nederste boks bliver bare for neden i browser-vinduet istedet for på siden
Annonceindlæg fra Infor
06. september 2003 - 15:35
#2
Her er CSS'en: #indhold { text-align: left; margin: 0px; padding: 0px; border-right: 1px solid #bfbfbf; border-left: 1px solid #bfbfbf; width: 760px; height: 100% } #top { position: absolute; top: 0px; width: 760px; height: 80px } #topmenu { background-color: #ebebeb; position: absolute; top: 80px; width: 760px; height: 20px } #body { padding-left: 160px; position: absolute; top: 100px; width: 755px; overflow: visible } #leftmenu { background-color: #fff; float: left; position: absolute; top: 100px; width: 160px } #footer { position: absolute; bottom: 0%; width: 760px; height: 20px } Her er HTML'en: <div id="indhold"> <div id="body"><!-- #INCLUDE FILE="inc/body.inc" --></div> <div id="leftmenu"><!-- #INCLUDE FILE="inc/leftmenu.inc" --></div> <div id="topmenu"><!-- #INCLUDE FILE="inc/topmenu.asp" --></div> <div id="top"><!-- #INCLUDE FILE="inc/top.inc" --></div> <div id="footer"><!-- #INCLUDE FILE="inc/footer.inc" --></div>
06. september 2003 - 16:48
#7
prøv det her HTML istedet for. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <Script type="text/javascript"> function setHeight(){ content.style.height = document.body.clientHeight; } </script> </head> <body onload="setHeight()"> <center> <table class=main cellpadding=0 cellspacing=0> <tr> <td style="vertical-align:middle;"> <table id=content class=content cellpadding=0 cellspacing=0> <tr> <td colspan=2 class=top><!-- #INCLUDE FILE="inc/top.inc" --></td> </tr> <tr> <td colspan=2 class=topmenu><!-- #INCLUDE FILE="inc/topmenu.asp" --></td> </tr> <tr> <td class=leftmenu><!-- #INCLUDE FILE="inc/leftmenu.inc" --></td> <td class=body><!-- #INCLUDE FILE="inc/body.inc" --></td> </tr> <tr> <td colspan=2 class=footer><!-- #INCLUDE FILE="inc/footer.inc" --></td> </tr> </table> </td> </tr> </table> </center> </body> </html>