Hallo Leute,
ich habe eine einfache Tabelle. Diese sollte 25px hoch sein. In der Tabelle möchte ich ein Bild (eine Gif Datei) die genau 25px hoch ist einfügen.
Jetzt habe ich folgendes Problem: Sobald ich das Bild einfüge, wird meine Tabelle automatisch höher, warum auch immer. Unter dem Bild entsteht ein freiraum.
Wenn ich statt dem Bild einen Div-Container einbaue mit 25px höhe passiert dies nicht.
Unten habe ich meinen Code eingefügt, vielleicht hat jemand eine Idee was ich übersehe.
HTML-Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Frame</title>
</head>
<body style="margin:0; font-family:Arial; color:#FFFFFF;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="height:25px;background-color: green">
<table style="height: 25px;" border="0" cellpadding="0" cellspacing="0"><tr>
<td>
<img src="frame1.php-Dateien/refresh.gif" width="31" height="25">
</td>
<td valign="top">
<div style="height:25px; width:50px; background-color:#FF3;"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body></html> Vielen Dank und viele Grüße,
I-Spy