Help: Menu bar is 20 pixels too high on IE7

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin Killion

    Help: Menu bar is 20 pixels too high on IE7


    I am building a website for a school, but running into a display problem
    between IE and CSS. (The site is http://stmary-stthomas.org/ )

    The main horizontal menu bar looks just fine on Mac and PC with most
    browsers.

    But on the PC with IE7, the menu bar winds up about 20 pixels too high.


    The menu is drawn in a DIV with class "navbar", which is inside a DIV
    with class "navcontain er":


    #navcontainer {
    position:absolu te;
    top:115px; /* This works on most browsers,
    but would have to be 135 for IE7 */
    }

    #navbar {
    height: 32px;
    padding: 0px 0px 0px 0px;
    margin: 0;
    position: relative;
    z-index: 900;
    float: none;
    width: 100%;
    font: 14px "Lucida, Verdana, sans-serif;
    }


    Help! Does anyone have any idea of what's wrong, *OR* how I can tweak
    this to make the "top" of the menu position come out correctly on IE7?

    THANKS!!!!

    Kevin Killion
  • dorayme

    #2
    Re: Help: Menu bar is 20 pixels too high on IE7

    In article <kevin-ED6C69.16114824 042008@newsclst r03.news.prodig y.net>,
    Kevin Killion <kevin@shsmedia .comwrote:
    I am building a website for a school, but running into a display problem
    between IE and CSS. (The site is http://stmary-stthomas.org/ )
    >
    The main horizontal menu bar looks just fine on Mac and PC with most
    browsers.
    ....
    #navcontainer {
    position:absolu te;
    top:115px; /* This works on most browsers,
    but would have to be 135 for IE7 */
    >
    Help! Does anyone have any idea of what's wrong, *OR* how I can tweak
    this to make the "top" of the menu position come out correctly on IE7?
    >
    Put this under any stylesheet links that you have in the head

    <!--[if lt IE 7]>
    <link rel="stylesheet " type="text/css" href="ie7.css">
    <![endif]-->

    Moreover, make sure you have no inline styles pertaining to this issue
    in the body.

    And now, make a new text file and call it ie7.css and type in this file:

    #navcontainer {
    position:absolu te;
    top:115px; 135px in it.

    (I noticed, for the first time ever, that a notice popped up on my
    screen saying you have requested I send you an email if I reply. Sorry
    Kevin, but I don't talk to strange men so intimately.)

    --
    dorayme

    Comment

    Working...