CSS driving me mad!!!

User 147010 Photo


Registered User
32 posts

Hi,
I am learning CSS and getting on OK but it appears to be different in every browser, no consistency so thinking of going back to using tables.
The site appears central in IE but not FF, Safari and Opera. http://www.molecontrol.uk.com/ Can anyone put me out of my misery. I have used the same coding for two other sites and they work OK.
HELP!
Regards
User 463058 Photo


Ambassador
1,076 posts

The body rule doesn't need "margin-left:auto;" or "margin-right:auto;".

Instead, add "margin:0 auto;" to the rule for #content_hp.
User 147010 Photo


Registered User
32 posts

Cary wrote:
The body rule doesn't need "margin-left:auto;" or "margin-right:auto;".

Instead, add "margin:0 auto;" to the rule for #content_hp.

This worked OK, thank you very much Cary.
User 463058 Photo


Ambassador
1,076 posts

Your welcome.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.