Hello and welcome to our community! Is this your first visit?
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
    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
    Sydney, Australia
    Thanked 666 Times in 655 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.
    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