• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem mit Darstellung IE/Firefox

187fm.net

Neues Mitglied
Hallo,
ich hab ein kleines Problem, oder eher gesagt eine mittelschwere Katastrophe ;) !

Folgende datei

HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="s1"></div>
<div id="s2"></div>
<div id="s3"></div>
</body>
</html>

... und dazu folgende CSS-Datei:
HTML:
body { background-color:006900;
       margin:0px; 
       padding:0px; }
h1 { color:006900;
     font-size:120%; }
div { border:0px; }
 
#s1 { width:210px;
      height:105px;
      position:fixed;
      top:150px;
      background:url(corner1.png) top no-repeat; }
#s2 { width:210px;
      height:750px;
      position:fixed;
      top:255px;
      background:url(fill1.png) repeat; }
#s3 { background-color:red;
      position:relative;
      width:400px; 
      height:1000px;
      top:150px;
      left:300px; }
#logo { width:220px;
        height:169px;
        position:fixed;
        background:url(hamb_logo.png) no-repeat; }

So, und nun wird die Seite im Firefox richtig, im IE8 allerdings nicht richtig angezeigt! Kann mir jemand sagen woran das liegt bzw. wie ich das abändern kann ?

mfg. M.Döring
 
Hallo.

Du musst deinem HTML Dokument einen passenden Doctype geben damit der Browser nicht in den Quirks Modus geschickt wird.

Gruss
Elroy
 
Zurück
Oben