Aargh. IE aligns centre, FF aligns left!

Soldato
Joined
12 Feb 2007
Posts
14,117
Location
South Shields
Eek.
I have an issue I cannot resolve, I have a zencart website I am currently building, and I will confess that I know not a lot about CSS. I picked up a template, and am having issues with the text on the site.

IE aligns it centrally, but FF aligns it on the left. I want it on the left. How would I go about fixing this? No idea if I can post up the URL or not. I have tried FF with the webtool plugin that shows exactly where the CSS is and isnt. I am clueless!
 
Its page-wide, so not just 1 element. Stupid CSS!
I will post it up, although the site has no products on it yet, I would not see a problem. Logo is a temp one, pages are mostly fiinished etc. Nearly there, it has taken a lot of work to get everything close to how I want it, I do not want to have to start with a new template!
www.tmbelectronics.com

I know little about CSS. I want pretty much everything aligned as it is in FF
Help is much appreciated!
 
On the ".align-center" class (stylesheet.css) remove the text-align: center !important; as far as I can see that's only there for < IE5 which don't respect auto margins properly.

Alternatively, if you don't want to remove anything, add text-align: left !important; on a more specific id (#contentMainWrapper).
 
Last edited:
On the ".align-center" class (stylesheet.css) remove the text-align: center !important; as far as I can see that's only there for < IE5 which don't respect auto margins properly.

Alternatively, if you don't want to remove anything, add text-align: left !important; on a more specific id (#contentMainWrapper).

Absolute star! You deserve the eCookie.
That did it! I really have to learn this properly one day :D.
Shame there isnt a rep on this forum sometimes!
 
Back
Top Bottom