Excellent, Cheers for that. It was something I've just noticed recently so I assumed it was something to do with the update on firefox - I shouldn't really doubt firefox but you never know! Cheers
Main Topics
Browse All TopicsHey guys,
I'm building a website and testing it in Firefox 3.5.2 and, has anyone noticed that, if you add a background colour to a div and use p tags the background colour leaves a gap at the top? When I created a border round the divs to see which div was causing it, the background colour then filled correctly so having a border top is a fix but why should we add a border all the time?!
It's something I've come across since upgrading firefox but it's ok in IE6, IE7 etc etc. Does anyone have a solution / reason for this? I guess I could be missing something but it's not happened before.
Cheers,
Jonny
EDIT: Forgot to add that obviously you can add custom padding to p e.g. p {margin:0; padding:5px 0 5px 0;} but I want to see if it's actually a bug in firefox or something else?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
> Excellent, Cheers for that. It was something I've just noticed recently so I assumed it was
> something to do with the update on firefox - I shouldn't really doubt firefox but you never know!
You're welcome.
All browsers have bugs; no current browser is perfect. However, usually when IE is rendering differently from other browsers it's an issue with IE.
Business Accounts
Answer for Membership
by: KravimirPosted on 2009-08-16 at 17:22:08ID: 25111015
You're experiencing collapsing margins (http://www.dynamicsitesol utions.com /css/layou t-techniqu es/ #collap sing_margi ns). IE5-7 often handle those incorrectly.
tions.com/ blog/2008/ 12/10-thin gs- you-mig ht-not-kno w-about-us ing-css/
You might find this helpful as well:
http://www.dynamicsitesolu