Search code examples
cssmargins

CSS spurious margins


I could do with a bit of help on this one. This page; http://fredericacards.co.uk/greetings-cards.php has a bunch of divs for products with an h3 heading. That h3 has a 20px top margin in Safari and a 20px top and bottom margin in Firefox that doesn't appear to originate from anywhere I can find.

It's an old-ish site so I haven't used a boilerplate reset but I've done the usual margin and padding 0 for *

I have debugged to the extent of reducing the page to just one offending div with Firebug but nothing I do, other than setting the top-margin to -20px, will shift that heading up.

What am I missing here?

I don't normally have a problem with spacing content so I guess there's something I'm carrying around that maybe a 2nd pair of eyes can spot.


Solution

  • You have some kind of funky characters in your product div - what code editor are you using? Look at the source HMTL:

    enter image description here