Elle: CSS-Layout im Internet-Explorer falsch dargestellt

Beitrag lesen

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Erweiterte Kirchennutzung</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<div id="container">
<div id="oben">
<img src="img/bild1.jpg" width="427px">
<ul id="menu">
<li><a href='index.html'>STARTSEITE</a></li>
<li><a href='programm.html'>PROGRAMM</a></li>
<li><a href='arbeitsgruppen.html'>ARBEITSGRUPPEN</a></li>
<li><a href='exkursion.html'>EXKURSION</a></li>
<li><a href='organisatorisches.html'>ORG. HINWEISE</a></li>
<li><a href='anmeldung.html'>ANMELDUNG</a></li>

</ul>

</div>
<div id="titel">
<img src="img/titel.png">
</div>
<div id="inhalt">
</div>
</div>
<body>
</body>
</html>

und die CSS-Datei (hoffentlich nicht zu lang)

@charset "UTF-8";
/* CSS Document */

body {
text-align:center;
background:#6699cc;
margin-top:0px;
font-family:Arial, Helvetica, sans-serif;
font-size:100%;
text-align:left;

}

#container {
  margin: 0 auto;
  width: 600px;
  }

#oben{
 background:#fff;
 height: 380px;
 padding-top: 5px;
}

#titel{
 background:#006699;
 height: 25px;
 padding-top:4px;
}

#inhalt{
 background:#fff;
 margin-top: 20px;
 min-height:300px;
 padding:10px;

}

img{
float: left;
margin-top: 5px;
margin-left: 10px;
}

img#oben {
width: 147px;
height: 185px;
margin:0px;
}

p{
font-family: Arial, Helvetica, sans-serif;
font-size:80%;
text-align:left;
color: #000000;
}
p.trenner{
padding-bottom:7px;
margin-top: 10px;
border-bottom: solid 1px #006699;
margin-bottom: 10px;
font-size:80%;}

p.klein{
font-size:60%}

h1 {
font-size: 100%;
color: #006699;
padding-bottom:20px;
padding-top: 10px;
font-family:Arial, Helvetica, sans-serif;
}

h2 {
font-size: 90%;
font-family:Arial, Helvetica, sans-serif;
text-align:left;
}

h3 {
font-size:85%;
padding-top: 8px;
font-family:Arial, Helvetica, sans-serif;
}

p.inhalt {
text-align:justify;
padding-bottom:0px;
font-size:80%;
}

#menu {
 background: #fff;
 float: right;
 list-style: none;
 padding-bottom: 3px;

padding-left: 5px;
 width:147px;
 margin-top: 5px;
 margin-bottom: 0px;

}
#menu li {
 font: 70%  LTSyntax Regular, Arial, Helvetica, sans-serif;
 margin-bottom: 5px;

padding: 0;
 text-align:left;
}
#menu a {
 background: #c0c0c0;
 color: #666;
 display: block;
 margin: 0;
 padding:5px 12px;
 text-decoration: none;
}
#menu a:hover {
 background: #006699;
 color: #fff;
 padding-bottom: 5px;
}

#menu a:active {
 background:#006699;
 color: #fff;
 }