[html] Tabellen Problem IE vs. FF/Opera

Joypad

Lieutenant
Registriert
Juli 2002
Beiträge
650
Hallo zusammen,

Ich möchte eine wie folgt geartete Layout-Tabelle erstellen:

tabelle.gif


Also 3 Spalten und 4 Reihen, soweit so gut.

Nun möchte ich in "links1" und "rechts1" jeweils ein 262px hohes (breite 73px) Bild setzen UND in "links2" und "rechts2" jeweils eine Hintergrundgrafik über die Länge des "inhalt" mitlaufen lassen.

Genau das funktioniert im Internet Explorer nicht. Der geht hin und verlängert die Tabellenzellen "links1"/"rechts1" anstatt die mit den Hintergrundbildern versehen Zellen "links2"/"rechts2". Die Zellen "links1"/"rechts1" sollen aber 262px hoch bleiben. Im Firefox und Opera sieht alles wie gewünscht aus.

Bitte Helfen :freak: !

Illustration des Problems im Anhang als problem.gif ausserdem noch ne Zip-Datei mit 'ner fertigen Beispiel Tabelle und gifs zum Ausprobieren.

Der Code:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Tabellen Problem</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000">
<table width="830" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  <tr>
    <td colspan="3"><img src="kopf.gif" border="0" alt="kopf"></td>
  </tr>
  <tr>
    <td style="width: 73px; height: 262px; vertical-align: top;"><img src="262px.gif" border="0" alt="kopf"></td>
    <td rowspan="2" style="width: 694px;">
		ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>
		ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>
	</td>
    <td style="width: 73px; height: 262px; vertical-align: top;"><img src="262px.gif" border="0" alt="kopf"></td>
  </tr>
  <tr>
    <td style="background-image: url(bg.gif); background-position: right; background-repeat: repeat-y;">&nbsp;</td>
    <td style="background-image: url(bg.gif); background-position: left; background-repeat: repeat-y;">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><img src="unten.gif" border="0" alt="kopf"></td>
  </tr>
</table>
</body>
</html>
 

Anhänge

  • test.zip
    test.zip
    4,5 KB · Aufrufe: 159
  • problem.gif
    problem.gif
    60,3 KB · Aufrufe: 215
Ist zwar dirty, aber wenn du den Trennbalken zwischen Bild und mitlaufender Hintergrundgrafik nicht vermisst, wäre das eine Möglichkeit..

HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Tabellen Problem</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000">
<table width="830" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  <tr>
    <td colspan="3"><img src="kopf.gif" border="0" alt="kopf"></td>
  </tr>
  <tr>
    <td style="vertical-align: top; background-image: url(bg.gif); background-position: right; background-repeat: repeat-y;" width="73" height="100%">
		<img src="262px.gif" border="0" alt="kopf">
	</td>
    <td style="width: 694px;">
		ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>
		ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>ganz viel Inhalt<br>
	</td>
    <td style="vertical-align: top; background-image: url(bg.gif); background-position: left; background-repeat: repeat-y;" width="73" height="100%">
		<img src="262px.gif" border="0" alt="kopf">
	</td>
  </tr>
  <tr>
    <td colspan="3"><img src="unten.gif" border="0" alt="kopf"></td>
  </tr>
</table>
</body>
</html>
 
Hallo,

danke für die Antwort, aber ich benötige rechts und links vom Inhalt je 2 Zellen.

Ich denke ich werde ein neues Design erstellen müssen. Ich hasse den IE.
 
Das bringt mich kein Stück weiter und es geht nicht um Tabellen(zellen).
 

Ähnliche Themen

Zurück
Oben