M.o.D
Lt. Commander
- Registriert
- Nov. 2002
- Beiträge
- 1.234
Hi.
Ich habe ein Problem mit folgendem HTML-Code.
Ich wollte erreichen, dass die website durch das "margin-left:auto; margin-right:auto" zentriert wird.
In Opera und in Firefox wird das auch korrekt angezeigt nur im IE 6 wird die Seite liksbündig dargestellt als ob der die margin-left und margin-right ignoriert.
Ist das ein Problem vom IE oder ist da ein Fehler im Code? Wie kann ich das beheben?
Thx im vorraus
Ich habe ein Problem mit folgendem HTML-Code.
HTML:
<html>
<head>
<title>Mortada Printing</title>
<style type=text/css>
#lyout {background-image:url(lyout.gif); margin-left:auto; margin-right:auto; margin-top: 20px; width: 750px;
height: 604px}
#logo {left: 10px; top: 4px; position: relative; width: 641px; height: 95px}
</style>
</head>
<body style="background-image:url(bg.gif)">
<div id="lyout">
<div id="logo"><img src="logo.jpg"></div>
</div>
</body>
</html>
Ich wollte erreichen, dass die website durch das "margin-left:auto; margin-right:auto" zentriert wird.
In Opera und in Firefox wird das auch korrekt angezeigt nur im IE 6 wird die Seite liksbündig dargestellt als ob der die margin-left und margin-right ignoriert.
Ist das ein Problem vom IE oder ist da ein Fehler im Code? Wie kann ich das beheben?
Thx im vorraus