Web page will not center.

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
SFTLOLZ
Forum Newbie
Posts: 7
Joined: Tue Jun 22, 2010 12:30 pm

Web page will not center.

Post 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.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Web page will not center.

Post by s.dot »

I see it centered in FF 3.6.13 and IE 8
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Web page will not center.

Post 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.
thecodewall
Forum Commoner
Posts: 33
Joined: Sun Dec 26, 2010 8:37 am

Re: Web page will not center.

Post 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
Last edited by thecodewall on Wed Jan 05, 2011 12:38 am, edited 2 times in total.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Web page will not center.

Post 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
Post Reply