Tabelle: geht‚s einfacher???
Marco Reisner
Hallo,
eine Frage an die Profis. Ich möchte eine Tabelle nach folgendem Muster schaffen (siehe Test-Quellcode). Leider muß ich 2 Tabellen dafür verwenden. Geht‚s nicht auch einfacher??? Wie schaffe ich es, daß die Tabelle, egal bei welcher Auflösung, immer absolut (also vertikal und horizontal) zentriert im Browser dargestellt wird.
Danke für die Hilfe, Marco
Test-Quellcode:
<html>
<head>
<title>Tabelle</title>
</head>
<body background="kachel.jpg">
<form>
<center>
<table width=500 height=230 border=1 cellspacing=0 cellpadding=0>
<tr>
<td valign=top align=center>
<font color=#FFFFFF>
<br>
Test
</br>
</td>
</tr>
</table>
<table width=335 height=10 border=1 cellspacing=0 cellpadding=0>
<tr>
<td align=left>
</td>
<td align=right>
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
Hallo!
Auf colspan kommt es an. Mit HEIGHT, WIDTH, usw. mußt Du selbst etwas rum spielen. Ich habe mal ein paar von Dir übernommen.
Die Zellen "unten links" und "unten rechts" nutzt Du einfach nicht.
<table width=500 border=1 cellspacing=0 cellpadding=0>
<tr>
<td height=230 colspan=3>oben</td>
</tr>
<tr>
<td>unter links</td>
<td width=335>unten mitte</td>
<td>unter rechts</td>
</tr>
</table>
Hier wird es in selfhtml beschrieben: <../../tcee.htm#a1>
http://www.teamone.de/selfhtml