All the divs are the correct size and everything, so I have a header, 2 columns and then a footer.
This is my CSS code
* {margin:0px; padding:0px; text- align:center;}
div#header {
width:1000px;
height:100px;
background-image:url(Untitled-1.jpg);}
div#header h1 {
width:20em;
margin-top:0px;
margin-left:auto;
margin-right:auto; }
div#content {
position:relative;}
div p {
text-align:left;
padding:1em;}
div#content {
float:left;
width:700px;
background-color:#0FF}
div#advert {
float:left;
width:300px;
background-color:#03F}
div#footer {
width: 1000px;
background-color: #C69
}
div#footer p {
width:10em;
padding:0.2em;
text-align:center;
border:0.2em dotted blue;
margin-left:auto;
margin-right:auto;}
So in short, all the above code makes my website float on the left and not in the centre. How would I adjust the above code to make it float in the centre?

New Topic/Question
Reply


MultiQuote




|