?
Solved

Layout problem with Firefox

Posted on 2009-05-06
9
Medium Priority
?
197 Views
Last Modified: 2013-11-19
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
0
Comment
Question by:ihbemd6rb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 

Author Comment

by:ihbemd6rb
ID: 24319594
Sorry, I forgot to write the url of the site. It is here!
0
 
LVL 14

Expert Comment

by:Ali Kayahan
ID: 24319700
Hello ihbemd6rb:
     Try to add ;
     * {margin:0px;padding:0px}
0
 

Author Comment

by:ihbemd6rb
ID: 24319993
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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 14

Expert Comment

by:Ali Kayahan
ID: 24320034
you should directly add the line to the top of your page
0
 

Author Comment

by:ihbemd6rb
ID: 24320069
No, it doesn't work eighter. Do you use Web developer tool bar on FF?
0
 
LVL 14

Expert Comment

by:Ali Kayahan
ID: 24320105
   Did you try to add margin:0px to nav and animation classes
0
 

Author Comment

by:ihbemd6rb
ID: 24320203
.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
 
LVL 14

Expert Comment

by:Ali Kayahan
ID: 24320339
you should suffix px to margin add padding values, for ff
0
 
LVL 42

Accepted Solution

by:
David S. earned 2000 total points
ID: 24322005
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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question