Tabelle
Bobi
- html
Hallo
ich habe kleine Frage,und zwar:
Ich habe Tabele gemacht und wollte genaz die Tabelle festlegen und wenn ich Text einfüge,bleib die grösse von Tabelle erhalten.
Wie kann ich soweas realisieren?
Danke
<table width=600px>
<tr>
<td width=200px> TEXT NUMMER 1 MIT 200 BREITER ZEllE</td>
<td width=400px> TEXT NUMMER 1 MIT 400 BREITER ZEllE</td>
<tr>
</table>
Hallo,
<table width=600px>
<tr>
<td width=200px> TEXT NUMMER 1 MIT 200 BREITER ZEllE</td>
<td width=400px> TEXT NUMMER 1 MIT 400 BREITER ZEllE</td>
<tr>
</table>
Ich bin mir irgendwie nicht so sicher ob das funktionieren wird, was aber auf jeden fall funktioniert ist
<table width="600">
<tr>
<td width="200"> TEXT NUMMER 1 MIT 200 BREITER ZEllE </td>
<td width="400"> TEXT NUMMER 1 MIT 400 BREITER ZEllE </td>
</tr>
</table>
oder besser mit CSS formatiert:
<html>
<head>
<style type="text/css">
table {
width: 600px;
}
td.eins {
width: 200px;
}
td.zwei {
width: 400px;
}
</style>
</head>
<body>
<table>
<tr>
<td class="eins"> TEXT NUMMER 1 MIT 200 BREITER ZEllE </td>
<td class="zwei"> TEXT NUMMER 1 MIT 400 BREITER ZEllE </td>
</tr>
</table>
</body>
</html>
Grüße
Jeena Paradies
Hallo,
<table width=600px>
<tr>
<td width=200px> TEXT NUMMER 1 MIT 200 BREITER ZEllE</td>
<td width=400px> TEXT NUMMER 1 MIT 400 BREITER ZEllE</td>
<tr>
</table>
Bitte poste keinen solchen Unsinn.
In HTML duerfen die Breiten- und Hoehenangaben _kein_ "px" enthalten.
Und in Hinblick auf XHTML (und ueberhaupt) sollte man
Attributswerte immer in Anfuehrungszeichen schreiben.
Also, wenn schon, so:
<table width="600">
<tr>
<td width="200"> TEXT NUMMER 1 MIT 200 BREITER ZEllE</td>
<td width="400"> TEXT NUMMER 1 MIT 400 BREITER ZEllE</td>
<tr>
</table>
Viel besser waere sowieso CSS, wie es Jeena vorgeschlagen hat.
Gruesse,
Thomas