Få en table til at have 100% height
Jeg har en side, hvor jeg gerne vil have min table til at gå helt ned til bunden, selvom der ikke er nok indhold på siden til automatisk at få den til det. Jeg har en header, en footer og en midte. Midten skal udvide sig sammen med skærmopløsningen.Her er min kode:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>DotA Allstars Danmark</title>
<link rel="stylesheet" href="inc/style.css" type="text/css" />
<link rel="stylesheet" href="inc/stylenews.css" type="text/css" /> <link rel="icon" href="images/favicon.ico" />
<script type="text/javascript" src="inc/script.js"></script>
</head>
<body>
<center>
<table style="width: 950px; height: 100%; border-collapse: collapse; border-spacing: 0px; border: 0px; padding: 0px; margin: 0px;">
<tr>
<td style="padding: 0px; background-image: url('images/left.gif'); background-repeat: repeat-y; background-color: #000000; width: 57px; height: 100%;"> </td>
<td style="padding: 0px; text-align: center; width: 836px; height: 100%; vertical-align: top;">
<table style="width: 100%; border-collapse: collapse; border-spacing: 0px; border: 0px; padding: 0px; margin: 0px; height: 100%; vertical-align: top;">
<tr>
<td style="padding: 0px; background-color: #000000; width: 100%; vertical-align: top; height: 150px;"><img src="images/banner/banner02.jpg" alt="Indeks" /></td>
</tr>
<tr>
<td style="padding: 0px; background-image: url('images/barbg.gif'); background-repeat: repeat-x; background-color: #000000; width: 100%; height: 30px;">Menu</td>
</tr>
<tr>
<td height="*" style="padding: 0px; padding-left: 10px; padding-right: 10px; background-color: #000000; width: 100%; vertical-align: top;">
<br />
<font style="font-size: 16px;">Overskrift</font>
<br /><br />
<center>
Indhold
<br />
</center>
</td>
</tr>
<tr>
<td style="padding: 0px; background-image: url('images/barbg.gif'); background-repeat: repeat-x; background-color: #000000; width: 770px; height: 30px;">Credits</td>
</tr>
</table>
</td>
<td style="padding: 0px; background-image: url('images/right.gif'); background-repeat: repeat-y; background-color: #000000; width: 57px; height: 100%;"> </td>
</tr>
</table>
</center>
</body>
</html>
