Hallo, ich habe folgende komische Situation.
Im Html Dokument unten wird die margin und width Angabe für das Element id:content ignoriert.
Wenn ich den Doctype rausnehme (was ich nicht will und kann)klappt es, woran liegt das.
Das html validiert auch!
============================
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
<!--
body {
background-color: yellow;
}
#content {
margin:auto;
width:1024;
}
#banner, #footer {
height:20;
background-color: green;
}
-->
</style>
<title>Homepage</title>
</head>
<body>
<div id="content" >
<div id="banner">BANNER</div>
Hier steht der Content
<div id="footer">Footer</div>
</div>
</body>
</html>