Zum Inhalt springen

HTML, <td>- Tag an Inhalt anpassen

Erstellt am 19. April 2006 · 1 Antwort · letzte Antwort am 19. April 2006

Tags: HTML & CSS, Frage

acidwr ·

Hallo Leute,

ich hab das Problem, dass ich einen <td> Tag in meinem Code als Container benutze um den Content anzuzeigen.

Dieser <td> Tag soll sich dann automatisch an die Größe des Inhaltes anpassen (nach unten).

Code des Templates sieht so aus:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>sb_template_2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="fileadmin/templates/sb_template_2.css" rel="stylesheet" type="text/css" />

</head>

<body>
###DOKUMENT###

<table id="Tabelle_01" width="836" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="5">
			<img id="sb_template_2_01" src="fileadmin/templates/images_sb_template_2/sb_template_2_01.jpg" width="836" height="50" alt="" /></td>
	</tr>
	<tr>
		<td rowspan="5">
			<img id="sb_template_2_02" src="fileadmin/templates/images_sb_template_2/sb_template_2_02.jpg" width="58" height="441" alt="" /></td>
		<td rowspan="5">
			<img id="sb_template_2_03" src="fileadmin/templates/images_sb_template_2/sb_template_2_03.jpg" width="1" height="441" alt="" /></td>
		<td colspan="2" background="fileadmin/templates/images_sb_template_2/sb_template_2_04.jpg" width="718" height="25" alt="navigation1"><div id="cMenu">###NAVI1###</div></td>
		<td rowspan="5" background="fileadmin/templates/images_sb_template_2/sb_template_2_05.jpg" width="59" height="441" alt=""></td>
	</tr>
	<tr>
		<td colspan="2" background="fileadmin/templates/images_sb_template_2/sb_template_2_06.jpg" width="718" height="20" alt="navigation2"><div id="navi2">###NAVI2###</div></td>
	</tr>
	<tr>
		<td colspan="2" background="fileadmin/templates/images_sb_template_2/sb_template_2_07.jpg" width="718" height="102" alt="banner"><div id="banner"><div id="rootline_trans"><div id="rootline_trans_text">
		###ROOTLINE###</div></div>###BANNER###</div></td>
	</tr>
	<tr>
		<td rowspan="2" background="fileadmin/templates/images_sb_template_2/sb_template_2_08.jpg" width="515" height="294" alt="container" valign="top"><div id="container_text">###CONTAINER###</div></td>
		<td>
			<img id="sb_template_2_09" src="fileadmin/templates/images_sb_template_2/sb_template_2_09.jpg" width="203" height="31" alt="" /></td>
	</tr>
	<tr>
		<td background="fileadmin/templates/images_sb_template_2/sb_template_2_10.jpg" width="203" height="263" alt="news_container">###NEWS_CONTAINER###</td>
	</tr>
	<tr>
		<td colspan="5">
			<img id="sb_template_2_11" src="fileadmin/templates/images_sb_template_2/sb_template_2_11.jpg" width="836" height="9" alt="" /></td>
	</tr>
</table>

###DOKUMENT###
</body>
</html>

Es geht um den Tag bei dem Platzhalter ###CONTAINER###.

An der Stelle liegt ein Bild im Background und sobald mehr Inhalt als Größe des Bildes da ist, wird des Layout zerschossen.

Zu viel Inhalt : http://www.bruechert.eu/index.php?id=11
Normales Layout: http://www.bruechert.eu/index.php?id=5

Dankbar für jede Hilfe.