Solved

Layout problem with Firefox

Posted on 2009-05-06
9
188 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
  • 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
 
LVL 14

Expert Comment

by:ali_kayahan
ID: 24320034
you should directly add the line to the top of your page
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now