vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
This works, just added the wrapper
change the heights and width and margins according to your needs
<html>
<head>
<style type="text/css">
#wrapper{
width:500px;
height:500px;
position:relative;
margin-left:-250px;
left:50%;
margin-top:-250px;
top:50%;
}
#logo{
background-color: red;
position: absolute;
top: 0px;
left: 0px;
width: 100px;
height: 100px;
}
#banner{
background-color: blue;
position: absolute;
top: 0px;
left: 100px;
width: 500px;
height: 100px;
}
#content{
background-color: green;
position: absolute;
top: 100px;
left: 0px;
width: 600px;
height: 400px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="logo"></div>
<div id="banner"></div>
<div id="content"></div>
</div>
</body>
</html>
GiorgosK
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 17
Solved Threads: 1
I did not check it with firefox actually
put this in the style tag
body, html {
height:100%;
}
it should work with Firefox now
GiorgosK
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 17
Solved Threads: 1
No problem Cerberus,
rep is always appreciated if you did find my post valuable.
GiorgosK
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 17
Solved Threads: 1