Andreas: Tabellen-Layout...

Beitrag lesen

Hi Ulli,

ich löse das immer durch einen unsichtbaren Spacer (ein transparentes GIF 1x1 Pixel), den ich via JavaScript durch das OnLoad Ereignis modifiziere:

<html>
<head>
<title>Demo</title>
<script language="javascript">
<!--
function set_spacer(){
  var ih;
  if(navigator.appName!="Microsoft Internet Explorer"){
    ih=window.innerHeight;
  }else{
    ih=document.body.offsetHeight;
  }
  // Höhe des Fensters - Irgendein Wert,
  // damit die Tabelle nicht zu hoch wird
  // und gescrollt werden muss
  document.spacer.height=ih-185;
}
//-->
</script>
</head>
<body OnLoad="set_spacer()">
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td colspan="2"><p>Kopf</p></td>
<td rowspan="2" width="1"><p><img src="spacer.gif" border="0" width="1" height="1" id="spacer"></p></td>
</tr>
<tr>
<td valign="top" width="150"><p>Navigation</p></td>
<td valign="top"><p>Inhalt der Seite</p></td>
</tr>
</table>
</body>
</html>

Ich hoffe das hilft Dir weiter.

Ciao
Andreas