menu bar floating strangely at odd intervals

Discussion in 'CSS' started by mike62, Sep 10, 2007.

  1. #1
    Hello,

    I am having an issue with my menu bar on the site http://foreignaid.ca/

    As I navigate around the site, every now and then, the page loads with some of the items in the top navigation bar "floating" down below the ones in the grey bar. See attached image.

    When I refresh the page, or navigate to another page, the nav loads properly.

    Here's my css file: http://www.foreignaid.ca/templates/foreignaid_template/css/template_css.css

    The relevant classes are #topnav styles.

    Has anyone experienced something like this before? I can't figure out what in the code might be causing this... Any help would be greatly appreciated.
     

    Attached Files:

    mike62, Sep 10, 2007 IP
  2. qube99

    qube99 Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, first off you're using XHTML style tags in a HTML 4.01 Transitional doctype. This is causing the head tag to prematurely close.

    I'd suggest getting the HTML to validate and then see where you stand. Then run the CSS through a validator, see what it says.
     
    qube99, Sep 10, 2007 IP