Click to See Complete Forum and Search --> : Page wont Budge


motormaniac
09-07-2006, 09:19 PM
Hey guys, my web page is having some problems it isnt centered to the middle of the page, and i cant get it to. Will someone take a look and see if they could figue out my error. My site is in the sig.

NogDog
09-07-2006, 09:26 PM
Moved to CSS forum as that's most likely where the problem is.

ray326
09-07-2006, 11:23 PM
#1 - there's not such thing as "float:center".

Get rid of the width and padding-left on the body.

WebJoel
09-08-2006, 07:25 AM
In your STYLE sheet, do this instead:

body {
font-family: verdana,Times, serif;
color: #FF9900;
background-color:#e2f2f1;
font-weight: normal;
font-size: 14px;
text-align: center;
height: 800px;
width: 600px;
/*border-left: thick solid 5em;
border-right: thick solid 5em;*/
margin:0 auto;
}

(added "margin:0 auto;" and removed "padding-left: 11em;". Now, it centers (more-or-less, as it is slightly wider than my 1024-px width monitor).

ray326
09-08-2006, 12:10 PM
The width had to go, too, for it to center for me. Note that width is way under your 1024 so it shouldn't have been a factor but the body content is wider than the body.