Validation - Margin size = "0"

  coolteentom 19:06 25 Apr 2006
Locked

I have recently been looking at validation ( click here ), however for the page I am working on, I have just found an error when loading in FireFox.

The page - click here - I have set using CSS so as not to use the body margin=0... but I have just found that this CSS code doesn't work in Firefox.

Can I use both Body margin=0... and CSS code together or will this create problems?

Cheers, Tom

  PurplePenny 20:19 25 Apr 2006

hmm... I see what you mean. Firefox is putting a margin around the page - looks about 10px. I don't understand why: body 0 should work in Firefox; I've used it with no problems.

I wonder if the problem is elesewhere. This bit of CSS "body { -10px 0 0 -10px };" has the semi-colon outside the end bracket: that might be upsetting Firefox.

  PurplePenny 20:26 25 Apr 2006

Yep - that does it. Just gave it a try and it is the semi-colon that is upsetting Firefox.

  coolteentom 23:48 26 Apr 2006

Thanks so much PurplePenny, you're a lifesaver!

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

AMD Radeon Adrenalin release date, new features, compatible graphics cards

Turn a photo into 16-bit pixel art

iMac Pro release date, UK price & specs

Football : comment regarder la Ligue 1 en direct ?