Page 1 of 1

Web page will not center.

Posted: Sat Dec 25, 2010 6:10 pm
by SFTLOLZ
I know this sounds ridiculous, but my css sheet is being crazy stubborn and will not center my website. I have tried virtually everything, (body text-align center, auto margins, wrapper auto margins, wrapper text-align-center.. etc) it just will not do it. It isn't an issue of I don't know how, I have another website that I use more to practice designs than anything (never really materialized the site). Can anyone take a look at my css stylesheet and tell me what is going on? (the sheet is kind of a mess).

http://www.sftlolz.com<--- the site I want centered
http://www.sftlolz.com/boog.css<---- The stylesheet
http://www.trabajoking.com<--- The site I have had centered with 0 problems.

Thank you to anyone that has any input.

FYI the main wrapper is #wrap.

Re: Web page will not center.

Posted: Sat Dec 25, 2010 9:53 pm
by s.dot
I see it centered in FF 3.6.13 and IE 8

Re: Web page will not center.

Posted: Sun Dec 26, 2010 2:06 pm
by califdon
The entries appear properly centered in IE, FF, Chrome, Safari, and Opera, but in IE the right column (login and ads) doesn't appear at all and there's a strange "object required" error message that quotes a line that I can't even find in your source code. You probably know this, but you are using some CSS3 (border-radius, etc.), which IE doesn't support. But I don't see anything wrong with your centering.

Re: Web page will not center.

Posted: Sun Dec 26, 2010 7:38 pm
by thecodewall
I think you must specify css on every browsers. Maybe this can help.
try this post. http://codewall.blogspot.com/2010/12/sp ... wsers.html

Re: Web page will not center.

Posted: Sun Dec 26, 2010 7:48 pm
by califdon
That's usually not necessary if you use the browser-specific prefixes, such as moz- and webkit- and if you are aware of the effect of the sequence of multiple commands. See http://www.webcredible.co.uk/user-frien ... tion.shtml