Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Web Design & Development Web Design & Development
Search Search
Search for:
Tech Support Guy > > >

Solved: centred in IE, left aligned in firefox?


(!)

cutcopypaste's Avatar
cutcopypaste cutcopypaste is offline
Member with 124 posts.
THREAD STARTER
 
Join Date: Jul 2007
Experience: Intermediate
18-Nov-2007, 05:34 PM #1
Solved: centred in IE, left aligned in firefox?
Hi all.. I'm working on a page at www.radioslipstream.com/wp

it's a wordpress install with a theme called sandbox and a stylesheet called shades of gray which I am modifying.
all is going relatively well, except I just noticed that in IE the content centres itself on the page, while in firefox it is set up snug against the left side (how I want it!)

do you know what is causing this anomaly? and how to force all the content to the side in IE?
amanxman's Avatar
amanxman amanxman is offline
Senior Member with 690 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
18-Nov-2007, 11:02 PM #2
can you paste the contents of the theme style sheet pls. Should be easy to fix if we can see css file. ta
Fyzbo's Avatar
Senior Member with 1,683 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
19-Nov-2007, 08:41 AM #3
#wrapper should have it's left and write margins set to auto.

margin:0px auto;

This will center it in more standard based browsers.
cutcopypaste's Avatar
cutcopypaste cutcopypaste is offline
Member with 124 posts.
THREAD STARTER
 
Join Date: Jul 2007
Experience: Intermediate
19-Nov-2007, 01:21 PM #4
This is the wrapper code.

Code:
#wrapper {
	min-width: 700px;
	max-width: 1000px;
	text-align: left;
	left: 0px;
	top: 0px;
	position: relative;
I want it on the left (as it shows in firefox) NOT centered. merci.
Fyzbo's Avatar
Senior Member with 1,683 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
19-Nov-2007, 01:50 PM #5
Ok I thought you wanted it centered. Remove the text-align:center; from the body styles.
amanxman's Avatar
amanxman amanxman is offline
Senior Member with 690 posts.
 
Join Date: Mar 2006
Location: New Zealand
Experience: Advanced Web Developer
19-Nov-2007, 02:54 PM #6
yeah as fyzbo said, it may also be caused by body styles. can you paste that too. Also you probably don't need that position: relative in the #wrapper.

amx
cutcopypaste's Avatar
cutcopypaste cutcopypaste is offline
Member with 124 posts.
THREAD STARTER
 
Join Date: Jul 2007
Experience: Intermediate
19-Nov-2007, 04:05 PM #7
i got rid of the center div and it works now..seems pretty obvious.. *headslam* i guess i just thought centered text wouldn't equal centered content, since all the text was left aligned anyway.. thanks!
Fyzbo's Avatar
Senior Member with 1,683 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
19-Nov-2007, 04:07 PM #8
centered text is not supposed to mean centered content, but to IE it does.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2