Hi,
mir ist aufgefallen, das es ein unterschied ist, ob man schreibt:
<td><img ...></td>
oder
<td>
<img ...>
</td>
Bei letzterem wird unter dem Image noch etwas platz gelassen. Woran liegt das??
Whitespace sollte doch eigentlich nicht interpretiert werden!
Doch.
Zitat (aus http://www.w3.org/TR/html401/struct/text.html#h-9.1)
In order to avoid problems with SGML line break rules and inconsistencies among extant [sic!] implementations, authors should not rely on user agents to render white space immediately after a start tag or immediately before an end tag. Thus, authors, and in particular authoring tools, should write:
Insbesondere dieser Teil:
authors should not rely on user agents to render white space immediately after a start tag or immediately before an end tag.
Man soll sich nicht darauf verlassen, daß dieser Whitespace dargestellt wird.
Heißt im Umkehrschluß: dieser Whitespace DARF dargestellt werden.
cu,
Andreas
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/