Ich hab da ein Problem, ich bin gerade dabei eine Seite zu Coden mit Div-Layern.
Ich hab einen extra Layer gemacht um die Seite zu zentrieren, aber das funktioniert in FireFox nicht. Wie kann ich das in Firefox machen?
Moderatoren: Basti, Ingo
#container {
position:absolute;
top:50%;
left:50%;
margin-top:-240px;
margin-left:-420px;
}
<body style="text-align:center;">margin: 0px auto;<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<style type="text/css">
#body {
text-align: center;
margin-bottom: 0px;
margin-top: 0px;
}
#root {
margin: 0px auto;
border: 1px #000000 solid;
width: 770px;
height: 744px;
background-image: url(images/bg.jpg);
background-repeat: no-repeat;
}
#header {
width: 770px;
height: 320px;
float: left;
background-color: #CCCCCC;
}
#submenu {
width: 200px;
height: 300px;
top: 20px;
left: 7px;
position: relative;
background-color:#CCCCCC;
}
#content {
width: 480px;
height: 350px;
top: -280px;
left: 222px;
position: relative;
background-color:#CCCCCC;
}
</style>
</head>
<body>
<div id="root">
<div id="header"> Hier wieder der Flash Header eingesetzt.</div>
<div id="submenu">Hier kommt der Newsletter rein</div>
<div id="content">Hier kommt der Content rein.</div>
</div>
</body>
</html>Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast