pinkmonkey
09-14-2011, 11:40 AM
HI,
I would appreciate any help anyone can offer me. I would like to centre the template I have for my site, currently it is based on the left.
I have tried to add a wrapper:
#wrap {
width: 900px;
margin: 0 auto;
}
But it doesnt work. The body code looks like this:
body{
background:url(.....) repeat-y top left #121212;
font:11px Arial, Helvetica, sans-serif normal;
text-align:left;
padding:0;
#header{
background:url(...) no-repeat top left #121212;
position:absolute;
top:0;left:0;
height:144px;
width:800px;
#main{
position:absolute;
top:170px;left:0;
width:600px;
color:#000
#sidebar{
position:absolute;
top:144px;left:700px;
width:200px;
color:#FFF;
they are all absolute, should they be auto with a wrapper?
Thanks for your help in advance
I would appreciate any help anyone can offer me. I would like to centre the template I have for my site, currently it is based on the left.
I have tried to add a wrapper:
#wrap {
width: 900px;
margin: 0 auto;
}
But it doesnt work. The body code looks like this:
body{
background:url(.....) repeat-y top left #121212;
font:11px Arial, Helvetica, sans-serif normal;
text-align:left;
padding:0;
#header{
background:url(...) no-repeat top left #121212;
position:absolute;
top:0;left:0;
height:144px;
width:800px;
#main{
position:absolute;
top:170px;left:0;
width:600px;
color:#000
#sidebar{
position:absolute;
top:144px;left:700px;
width:200px;
color:#FFF;
they are all absolute, should they be auto with a wrapper?
Thanks for your help in advance