lonni: Problem mit IE: 1px Rand bei position:absolute; und bottom:0;

Hallo zusammen,
ich möchte einen Footer am unteren Seitenrand mit KEINEM Abstand zum Fensterrand absolut plazieren. Je nach Fenstergröße ist im IE 1px Abstand zum Fensterrand. Ist das IE-Fenster maximiert, tritt dieses Problem nicht auf.
Wie kann ich diesen Fehler beheben?

Im foldenden ein kleines Beispiel.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>F O O T E R</title>

<style type="text/css">
html body {
 color:#000;
 background-color:#ee0000;
 margin:0;
 padding:0;
}

#footer {
 position:absolute;
 bottom:0;
 left:0;
 width:100%;
 height:30px;
 background-color:#eee;
 margin:0;
 padding:0;
 border:0;
 text-align:center;
}
</style>

</head>

<body>
 <div id="footer">
 <p>F O O T E R</p>
 </div>
</body>

</html>

Danke für Eure Lösung(en)!
Lonni

  1. Er ist nun mal ein Saftsack, der IE.
    Die folgende Lösung sieht in Firefox, IE6 und Opera 7 gleich aus

    <style type="text/css">
    html body {
     color:#000;
     background-color:#ee0000;
     margin:0px 0px 0px 0px;
     padding:0px 0px 0px 0px;
    }

    /* IE Scrollbar-Platzhalter verhindern, wenns nix zu scrollen gibt*/
    * html body {overflow: auto}

    #footer {
     position:absolute;
     bottom:0px;
     left:0px;
     width:100%;
     height:30px;
     background-color:#eee;
     margin:0px 0px;
     padding:0px 0px;
     border: none;
     text-align:center;
    }

    /* Hier lassen wir den Pixel am unteren Rand des IE verschwinden */
    * html #footer {bottom: -1px}

    /* margin-top und bottom muessen im P für Firefox und Opera wech */
    #footer p {margin: 0; padding: 0.3em}
    </style>

    1. Danke Uschi für die schnelle Lösung!

      So einfach kann es sein!