Space between header and nav bar in IE

Discussion in 'HTML & Website Design' started by Financiallypoor, Sep 1, 2010.

  1. #1
    My site looks good in other browsers, but in IE there's a large gap between the header and nav bar

    heres the way it's supposed to look
    [​IMG]

    here's how it looks it IE
    [​IMG]

    My site is FinanciallyPoor.com

    I have no clue what is causing it. I've been messing around with it forever and can't figure it out. Thank you for helping.
     
    Financiallypoor, Sep 1, 2010 IP
  2. Piotr Aszoff

    Piotr Aszoff Active Member

    Messages:
    38
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    53
    #2
    maybe negative margin values for a menu will work (for ie only)
     
    Piotr Aszoff, Sep 1, 2010 IP
  3. alfa_375

    alfa_375 Active Member

    Messages:
    445
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Better you code new style sheet for IE separately.
     
    alfa_375, Sep 3, 2010 IP
  4. ArchAxis

    ArchAxis Well-Known Member

    Messages:
    136
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    175
    #4
    Hey! Looks like there are two possible solutions.

    1. IE is getting a diffeferent style sheet then Firefox etc so try commenting out the IE conditional stuff in your header.php (Note you're using a minify script so making changes won't be seen unless you turn the script off).

    2. In your ie.css file add the following to it.

    .custom .google {padding-bottom:0px !important; padding-left:0px !important; }
    Code (markup):
    Doing one of those will fix it but 2 will surely fix it.

    Have fun!

    Virgil
     
    ArchAxis, Sep 3, 2010 IP
  5. bavington

    bavington Peon

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think all that is happening is that the Google Search box is knocking your Navigation down onto another line. Try floating the UL left by adding the following to your class:

    .custom .menu {
    border-style:none;
    float:left;
    }

    Let me know if that works. If not, after you've floated left, trying adding the Google Search box straight after the navigation bar rather than before.

    James.
     
    bavington, Sep 3, 2010 IP
  6. goliveira1990

    goliveira1990 Active Member

    Messages:
    127
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    93
    #6
    I agree with bavington, but if that doesn't work, try playing around with your margin and padding values on the navigation.
     
    goliveira1990, Sep 3, 2010 IP
  7. indescoz

    indescoz Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    make a separate style sheet for ie, that will be best solution.
     
    indescoz, Sep 3, 2010 IP