Hallo,
hab ein kleines Problem.Hab eine Vorlage welche ich mit margin:auto; zentriere. Die Vorlage funzt im IE auch, sobald ich sie aber in Typo integriere, ist sie wieder linksbündig..Firefox funzt alles.
Danke im voraus.
Gruß
saromba
Vorlage.html
HTML-Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Zweispaltiges Layout - Struktur</title> <link rel=stylesheet type="text/css" href="style.css"> </head> <body> <--! ###DOKUMENT### begin --> <div id="top">###TOP###</div> <div id="menu_oben">###MENU###</div> <div id="inhalt"><p>###INHALT###</p></div> <--! ###DOKUMENT### end --> </body> </html> style.css...
Code:
*{
padding: 0px;
margin: 0px;
}
body{
background-color: #111111;
}
#inhalt {
font-family:Arial;
width: 750px;
margin:auto;
background-color: #ffffff;
height:1000px;
}
#inhalt h1{
text-decoration:underline;
position:relative;
left:40px;
top:40px;
}
#inhalt p{
position:relative;
top:50px;
left:40px;
}
#top {
margin:auto;
height:180px;
width:750px;
background-color:#dddddd;
}
#menu_oben{
margin: auto;
width:750px;
height:38px;
background-color:#ff2323;
font-family:Arial;
}
#menu_oben ul {
position:relative;
top:10px;
left:40px;
}
#menu_oben ul li{
display: inline;
text-decoration:none;
font-size:12px;
margin-right:40px;
}
//EDIT von MistaD
Code in die passenden Code-Container geschubst!