Ashura: <img width="100%"> funktioniert nicht mit dem IE

Beitrag lesen

Hallo Markus.

So sieht meine HTML-Datei aus:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
  <head>
    <title>New Document</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css">
  [code lang=css]html,body{padding:0;margin:0;height:100%;}


>   </style>  
>   </head>[/code]  
  
Bis hierher sieht der Code seltsamerweise genau wie meiner aus.  
  

>   `<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="#000000" color="#FFFFFF">`{:.language-html}  
  
Wozu das hier? Schau dir einmal die Style-Angaben im head genau an.  
  

>   <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">  
  
Wie du [hier](http://de.selfhtml.org/html/referenz/attribute.htm) sehen kannst, hat table kein height-Attribut.  
  

> Weiß jemand wo da der Fehler ist?  
  
Ist die Tabelle wirklich erforderlich? Bitte befasse dich mit [CSS](http://de.selfhtml.org/css/), insbesondere [CSS-basierten Layouts](http://de.selfhtml.org/css/layouts/index.htm).  
Dadurch entstehen viel mehr Freiheiten, als eine Layouttabelle dir zu geben vermag.  
  
  
Gruß, Ashura  

-- 
Selfcode: sh:( fo:) ch:? rl:( br:^ n4:& ie:{ mo:) va:) de:> zu:) fl:( ss:| ls:[ js:|  
Try it: [Become an Opera Lover in 30 days](http://tntluoma.com/opera/lover/7/)  
Meine Browser: Opera 8.0 | Firefox 1.0.4 | Lynx 2.8.3 | Netscape 4.7 | IE 6.0  
IE Layout-Workaround №1: <!--[if IE]><style type="text/css">\*{display:none;}</style><![endif]-->