Layout problem with Firefox

Internet Explorer displays my page correctly, but firefox and safari make a gap between two divs once I insert an image to the div belowit. May someone look hier and tell me what could be wrong?
thanks
ihbemd6rbAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ihbemd6rbAuthor Commented:
Sorry, I forgot to write the url of the site. It is here!
0
Ali KayahanFull Stack DeveloperCommented:
Hello ihbemd6rb:
     Try to add ;
     * {margin:0px;padding:0px}
0
ihbemd6rbAuthor Commented:
Hello Ali,
To which div tag should it add this property? I added it to the animation div and the nav (menu) div had already had it. BTW. it still doesn't work :-(
Amazing i that the same application works on my local host, but not on the production server ...
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Ali KayahanFull Stack DeveloperCommented:
you should directly add the line to the top of your page
0
ihbemd6rbAuthor Commented:
No, it doesn't work eighter. Do you use Web developer tool bar on FF?
0
Ali KayahanFull Stack DeveloperCommented:
   Did you try to add margin:0px to nav and animation classes
0
ihbemd6rbAuthor Commented:
.nav
{width: auto; height:23px; background-color: #c0c0c0; border: 1px solid #828282; padding:0; margin:0;}
.animation
{width: inherit; height:278px; background-color:Black; z-index: -10;padding:0; margin:0;}
This is the current status!
0
Ali KayahanFull Stack DeveloperCommented:
you should suffix px to margin add padding values, for ff
0
David S.Commented:
You've run into collapsing margins. IE5-7 often handle those incorrectly. The simplest fix would be to give ".animation" "padding: 1px 0".

More information: http://www.dynamicsitesolutions.com/css/layout-techniques/#collapsing_margins

> you should suffix px to margin add padding values, for ff

Units are only required for non-zero values.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.