Få tabel til at flyde 100%
Er ved at arbejde på denne side. http://www.no1company.dk/TEST/Jeg ønsker at tabellen som indeholder "Copyright © 2006 No. 1 Company. All rights reserved." skal fylde hele den tomme plads. Med andre ord skal den justere sig efter hvilken opløsning folk bruger.
Så siden dermed tilpasser dig det antal pixels brugeren har i højden.
Tabellen er inkluderet med koden:
<?php
include("bund.php");
?>
Hvordan løser jeg det problem?
KODE FOR INDEX.PHP fil:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Sells</title>
<style type="text/css">
<!--
body
{
margin:0px;
height:100%;
}
body {
background-color: #eeeeee;
}
.style1 {
font-size: 10px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}
-->
</style></head>
<body>
<div align="center">
<table width="764" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="12" rowspan="5" background="skygge-left.gif" scope="col"> </th>
<th scope="col" height="48"><?php
include("menu-top.php");
?></th>
<th width="12" rowspan="5" background="skygge-right.gif" scope="col"> </th>
</tr>
<tr>
<td height="2" bgcolor="#4B7791"></td>
</tr>
<tr>
<td><img src="front-d3o.jpg" width="740" height="323"></td>
</tr>
<tr>
<td height="2" bgcolor="#4B7791"></td>
</tr>
<tr>
<td height="100%"><?php
include("bund.php");
?></td>
</tr>
</table>
</div>
</body>
</html>
KODE FOR BUND.PHP
<style type="text/css">
<!--
.style3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #FFFFFF;
}
-->
</style>
<table width="740" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="right" valign="top" background="baggrund-bund.gif" scope="col"><div align="right" class="style3">Copyright © 2006 No. 1 Company. All rights reserved.</div></th>
</tr>
</table>
