I am at the start of a new site and have now i have got it in the center i now need to sort the background out.
the section “backgroun_main” i need it to be 100% but when i do that nothing happens or when i try to add a new div tag inside it goes nuts.
i need to know how to make other divs work inside that div.
code;
[code=php]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<style type=”text/css”>
#center_site {
position: absolute;
height: auto;
width: 750px;
top: 200px;
left: 50%;
margin: -200px 0px 0px -380px;
}
#background_main {
position:absolute;
left: 0;
top: 0;
width: 750px;
height: auto;
margin: 0;
padding: 0;
background: #FFF;
}
#2 {
position:absolute;
left: 0;
top:200px;
width: 100px;
height: auto;
margin:0px;
padding:0px;
background: #ff0;
}
#3 {
position:absolute;
left: 0;
top:0px;
width: 50px;
height: 50;
margin:0px;
padding:0px;
background: #110;
}
</style>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<div id=”center_site”>
<body background=”tile.gif”>
<div id=”background_main”>
</div>
<span id=”2″> <div id=”3″></div></span>
</body>
</div>
</html>