Hi, ich hab ne Seite, wo folgender Code drinsteht:
Der IE 6 (xD) zeigt die seite richtig an, aber beim IE 8 und Firefox ist das alles nicht zentriert. Warum nimmt der keine Zentrierung via CSS???
PHP-Code:
echo "
...
<style type=\"text/css\">
body {
background: #d5d5d5;
font-family: Calibri, Verdana, Arial;
color: #0a0a0a;
margin-top:0px;
text-align: center;
}
a {
font-family: Calibri, Verdana, Arial;
color: #0a0a0a;
}
img {
border: none;
}
#rahmen {
background: #d5d5d5 url(images/bg_rahmen.jpg);
width: 920px;
text-align: center;
}
#header {
background: #ececec url(images/bg_header.png);
border: 0px;
width: 900px;
text-align: center;
height:150px;
max-height:150px;
}
#main_menu {
background: #ececec url(images/bg_main_menu.jpg) repeat-x;
border: 0px;
width: 890px;
text-align: left;
height:30px;
max-height:30px;
padding-top:5px;
padding-left:30px;
}
#main_menu a {
font-family: Calibri, Verdana, Arial;
color: #ececec;
font-size:90%;
text-decoration:none;
}
.content {
background: #ececec url(images/bg.jpg) repeat-x;
}
</style>
</head>
<body>
<div id=\"rahmen\">
<div id=\"header\">
<img src=\"images/titel.jpg\" style=\"margin-top:10px\">
</div>
</div>
<div id=\"main_menu\">
<a href=\"index.php\">Startseite</a>
</div>
...
Kommentar