Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Space between Divs (Firefox)

    Hi, I am working on a website (http://www.optimalhumidity.com/), and when I display it in Firefox, there is a gap between the header image and the nav bar. This does not occur in Internet Explorer. What's going on?
    Thanks! ~Blake

    P.S. I had a similar problem with spacing in Internet Explorer and solved it by opening and closing the "header" div on the same line.

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,609
    Thanks
    0
    Thanked 645 Times in 635 Posts
    The gap is there on browsers other than Firefox. It is just IE getting the defaults wrong that is the reason that it doesn't appear there.

    You haven't set a margin size for the navbar so it will be using the default margin size.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •