...

View Full Version : Another IE centering problem...



tommehtom
10-27-2011, 09:51 PM
I've trawled everywhere and tried fixes suggested and no joy. Wandering if anyone can help me here?

The website is http://www.tomstonell.co.uk

As usual, it works fine in everything but IE!:confused:

Thanks

Tom

Excavator
10-27-2011, 10:00 PM
Hello tommehtom,
To center an element you need three things:

a valid DocType
an element with a width
that elements right/left margins set to auto


You seem to be missing the DocType.
Read about DocTypes at the link in my signature line below.

tommehtom
10-27-2011, 10:23 PM
Hi Excavator, thanks for your reply! I've stuck in a doctype which is a step in the right direction, but still no luck :(

Excavator
10-27-2011, 10:32 PM
Hi Excavator, thanks for your reply! I've stuck in a doctype which is a step in the right direction, but still no luck :(

Could you update the online version so we can see what you're doing?

Excavator
10-27-2011, 10:43 PM
Hmm, maybe you did? I did not notice the DocType you have on line 6 so I'm not sure if that's new.

Move that up to line 1 and things will probably be ok.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum