Hallo zusammen!
Habe viel gesucht und viel gefunden, scheitere aber noch immer beim <th>-Tag!
Wird einfach nicht über die 5 Zellen gezogen und der Abstand oberhalb will auch nicht erscheinen. Meines Wissens sind aber sowohl column-span als auch margin-top für th-tags zulässig. Was habe ich übersehen?
Danke schonmal
Ralf
Ich lagere die Tabellenvorlage aus und möchte so wenig wie irgend möglich zu den einzelnen Tags dazu schreiben.
Im externen Stylesheet habe ich u.a. definiert:
body { background-color:#FFFFFF; font-size:85%; margin-left:10px; font-family:courier; color:black; text-align:left; white-space:nowrap; }
/* Tabellen-Definition */
table { width:560px; border:0; }
th { column-span:5; margin-top:8px; font-family:helvetica,arial; font-weight:bold; text-transform:uppercase; letter-spacing:2pt; border-top:1pt solid black; }
#col1, #col2 {width:151px; }
#col3 {width:90px; }
#col4 {width:123px; }
#col5 {width:45px; }
td {font-family:helvetica,arial; }
_______________________________________
Fast alle Definitionen funktionieren, nur nicht:
th { column-span:5; margin-top:8px; ... der Rest wird dann wieder korrekt ausgelesen --> ???; }
(Habe auch schon extra eine leere Tabellenzeile mit 5 Zellen oberhalb reingeschieben, aber auch das hilft nicht.)
Falls von Interesse - Die Seite selbst sieht dann etwa so aus:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Gut zu wissen...</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="formate.css">
</head>
<body>
<table>
<colgroup>
<col id="col1">
<col id="col2">
<col id="col3">
<col id="col4">
<col id="col5">
</colgroup>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr class="g">
<th><a name="A"></a>Aachen</th>
</tr>
<tr class="g">
<td>Institut</td>
<td><span class="small"><a href="mailto:mail@provider.net">mail@provider.net</a></span></td>
<td>0222</td>
<td>2222 - 0</td>
<td>Zen</td>
</tr>
<tr class="w">
<td> </td>
<td> </td>
<td> </td>
<td>2222 - 222</td>
<td>Fax</td>
</tr>
.... und so weiter
</table>
</body>
</html>