Problemer med stylesheet og div under tabel
Jeg er igang med at lave en masterpage, hvori jeg har top, menu og indhold smidt ind i en tabel. Herunder har jeg smidt en div der skal strække sig til bunden af IE7 og Firefox - men jeg kan ikke få det til at hænge sammen.Er der nogen der har et godt forslag?
CSS:
html,body
{
margin: 0;
padding: 0;
height: 100%;
min-height: 100%;
}
#wrap
{
margin: 0 auto;
height: auto;
min-height: 100%;
}
#bottom
{
?!?
}
CODE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="styles/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin-top: 0px; margin-bottom: 0px;">
<form id="form1" runat="server">
<table style="width: 100%; height: 100%; background-color: #ffffff;" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" rowspan="3">
****image****
</td>
<td colspan="3" style="height: 80px;" class="overskrift">
</td>
</tr>
<tr>
<td colspan="3" style="height: 30px;"; class="subskrift">
</td>
</tr>
<tr>
<td colspan="3" align="right" valign="bottom" class="navitop" style="height: 30px;";>
</td>
</tr>
<tr>
<td style="width: 20px" class="lineblue"></td>
<td style="width: 20px" class="lineblue"></td>
<td align="left" colspan="3" class="lineblue">
</td>
</tr>
<tr>
<td align="left" valign="top" style="width: 150px; height: 100%; background-color: #0000ff;" class="leftnavi">
</td>
<td style="width: 20px; height: 100%;" ></td>
<td align="center" valign="top" style="background-image: url(img/Vandmaerkebg2.gif); background-repeat: no-repeat; background-position: center top; background-color: #ffffff; height: 100%;">
<div>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>
</td>
<td style="width: 20px; height: 100%;"></td>
</tr>
</table>
<div id="wrap">
****DENNE skal udvide sig til bunden af browseren hvis muligt****
</div>
<div id="bottom">
tekst
</div>
</form>
</body>
</html>
