Solved

Layout problem with Firefox

Posted on 2009-05-06
9
195 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
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 500 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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