Hi,
ich habe eine Frage bezüglich meines Layouts. Und zwar wollte ich, dass das Layout sich in der Mitte von der Seite befindet. Ich habe schon einiges versucht aber bin nicht zu einer Lösung gekommen.
Achso und ich wollte dass jeder Browser die Page richtig darstellt, aber im IE verhaut es das Layout total.. bis jetzt konnte ich nur IE und FF ausprobieren..
ich habe eine Frage bezüglich meines Layouts. Und zwar wollte ich, dass das Layout sich in der Mitte von der Seite befindet. Ich habe schon einiges versucht aber bin nicht zu einer Lösung gekommen.
Code:
html,body {
height:100%;
margin-top: 0;
}
#center {
position:absolute;
left:50%;
}
#main {
position:absolute;
min-height:100%;
width:734px;
background-color:#898989;
}
#top {
position:absolute;
top:0;
left:2px;
width:730px;
height:191px;
background-position: center;
background-image: url(images/index_02.jpg);
}
#topbar {
position:absolute;
top:191px;
left:2px;
width:730px;
height:24px;
background-image: url(images/index_04.jpg);
}
#content {
position:absolute;
top:215px;
left:2px;
bottom:67px;
width:730px;
background-image: url(images/index_06.jpg);
}
#footer {
position:absolute;
bottom:0;
left:2px;
width:730px;
height:67px;
background-image: url(images/index_07.jpg);
}
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>untitled</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="#111111">
<div id="center">
<div id="main">
<div id="top"></div>
<div id="topbar">
<div></div>
</div>
<div id="content">
<div></div>
</div>
<div id="footer"></div>
</div>
</div>
</body>
</html>
Achso und ich wollte dass jeder Browser die Page richtig darstellt, aber im IE verhaut es das Layout total.. bis jetzt konnte ich nur IE und FF ausprobieren..