<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
 <title>Problemf&auml;lle XHTML und CSS: H&ouml;he von Tabellenzellen</title>

 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <meta http-equiv="Content-Language" content="DE" />
 <meta http-equiv="Content-Style" content="text/css" />

 <meta name="description" content="Problemf&auml;lle XHTML und CSS: H&ouml;he von Tabellenzellen." />
 <meta name="keywords" content="HTML, Tabellen, CSS, XHTML" />
 <meta name="author" content="Roland Unger" />

 <style type="text/css">

  .blockimage { display: block }

 </style>
</head>

<body>

<h1>Problemf&auml;lle XHTML und CSS</h1>

<h2>H&ouml;he von Tabellenzellen</h2>

<p>XHTML-Dokumente stellen standardm&auml;&szlig;ig Tabellenzellen mit H&ouml;hen als
Vielfaches von Textzeilenhöhen dar. Dies betrifft auch Bilder, die den Wert
&quot;inline&quot; der CSS-Eigenschaft &quot;display&quot; besitzen. Soll die H&ouml;he
einer Tabellenzelle von der Bildh&ouml;he abh&auml;ngen, so muss der CSS-Eigenschaft
&quot;display&quot; der Wert &quot;block&quot; zugewiesen werden.</p>

<h2>Beispiel ohne Korrektur</h2>

<table summary="Beispiel f&uuml;r Horizontallinie" bgcolor="#961E00" width="80%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
 <td><img src="html_dot.gif" width="1" height="1" alt="" /></td>
</tr>
</table>

<h2>Beispiel mit Korrektur</h2>

<table summary="Beispiel f&uuml;r Horizontallinie" bgcolor="#961E00" width="80%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
 <td><img src="html_dot.gif" class="blockimage" width="1" height="1" alt="" /></td>
</tr>
</table>

</body>
</html>