Daniel Koch: Probleme mit Position:Fixed

Beitrag lesen

Ich habe in meine CSS diesen Code, um eine Position zu fixieren.
Nun funktioniert dieser Code im Opera ind FireFox, aber leider nicht im Internet Explorer.

Kann mir jemand den Code sagen, dass dies auch im IE funktionert?

CSS File:

#fixed {
   position:fixed;
   top:0px;
   right:0px;
   width: 200px;
   height: 200px;
   border:black solid 2px;
   background-color:#FF00FF;
}

Index File:

<html>

<head>
 <meta http-equiv="content-type" content="application/xhtml; charset=UTF-8" />
 <link rel="stylesheet" type="text/css" href="style.css" media="screen, tv, projection" />

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test</title>
<base target="Inhalt">
</head>

<body>

<p>Test</p>

<div id="fixed">Fixiert</div>

</body>

</html>