PDA

View Full Version : CSS Page alignment ok in Firefox, wrong in Explorer



dkmobil
February 20th, 2009, 09:55 PM
Hi,

I have a bit of a problem with my page alignment :(

The site is: http://www.billigmobiltelefoni.com (http://www.billigmobiltelefoni.com/)

It looks ok in Firefox (3.06), but totally wrong in Explorer (7.0).

First firefox. Here the layout is centered just like it should be...

http://www.billigmobiltelefoni.com/pics/firefox.jpg

Now explorer. Here the layout is left aligned which is totally wrong...

http://www.billigmobiltelefoni.com/pics/explorer.jpg

Can anyone see what is going wrong?

Stylesheet here (it's a modified wordpress theme):
http://www.billigmobiltelefoni.com/wp-content/themes/billigmobiltelefoni/style.css

Thanks a lot,
Peter

samoscratch
February 21st, 2009, 02:49 PM
Hmm, try giving the id #bgcontain a margin:auto; that works on my end

dkmobil
February 22nd, 2009, 03:01 PM
Thanks for your reply, but it didn't work. Found out that it was some javascript in the header php file that caused the error. Removing the javascript (which changed some images) removed the error, so now it works.

http://www.billigmobiltelefoni.com (http://www.billigmobiltelefoni.com/) (even tested it in browsershots.org - and it looks fine across the board there)

samoscratch
February 22nd, 2009, 04:09 PM
That's strange, I tested the site locally and it worked with my changes

But glad you figured it out