margin:0; SCHON WIEDER KEINE ANGABEN. 0 SCHAFE? ZIEGEN?
0 braucht keine Einheit (ist bei null ja auch egan ob px schafe oder ziegen:-)
habe es trotzdemwie vorgeschlagen au 0px gesetzt.
schreiben -> LOS COPY PASTE
Done! Geiches Ergebnis.
IE wie erwartet FF und safari nicht.
Validen CODE!
code ist valide! habs gecheckt!
Hier nochmal der code:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
div {
margin:0;
padding:0;
}
body {
margin:0px;
padding:0;
background-color: red;
}
#container_aussen {
width:990px;
margin:auto;
margin-top:0;
position : relative;
background-color: green;
}
#container {
margin-left:20px;
margin-right:30px;
margin-top: 10px;
background-color:white;
}
</style>
<title>TEST</title>
</head>
<body>
<div id='container_aussen'>
<div id='container'>
<p>Content im container</p>
</div>
</div>
</body>
</html>