Validation - Margin size = "0"

  coolteentom 19:06 25 Apr 2006

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

HTC U12 Plus review: Hands-on

Frida Kahlo's life, art and legacy explored in Google's new giant online collection and app

Best Android emulators for Mac

Comment importer des contacts d’un iPhone à un autre iPhone ?