• I tried a post in the Troubleshooting area but did not get one reply with help (one guy spoke of general problems between browsers but did specifically address my problem). My problem is that my navbar list shows up in a different vertical positions in different browsers. I am quite a beginner at this and am extremely confused and frustrated, so I am desperate for some assitance on this. My site is http://unf.coldwire.org for those of you that want to see what I am talking about personally. I have setup a picture to show the differences that I see between the browsers at http://unf.coldwire.org/problem.jpg

    I’ll paste the code used below as well. Seems the shelf life of these posts is almost nothing, especially when someone replies at least once. So hopefully someone can reply with some specific help 🙂

    #navcontainer {
    display: block;
    width: 100%;
    margin:0px auto;
    margin-top: -28px;
    text-align: left;
    font-size: 1.2em;
    }

    #navcontainer ul li {
    display: inline;
    text-align: center;
    }

    #navcontainer ul li a {
    margin:0;
    padding: 2px 10px;
    background-color: #A0BEE6;
    color: black;
    text-decoration: none;
    text-align: center;
    //border-top: 1px solid #ffffff;
    }

    #navlist li a:hover {
    color: white;
    background: #174C81;
    }

    #navlist li a:active, #navcontainer #navlist #current {
    color: black;
    background: white;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • I believe you are hitting fundamental browser issues here in how the measure lengths and how they interpret CSS.

    http://www.tamba2.org.uk/downloads/testt.jpg

    IE at the top, FF below.
    The redline indicates the same container, and you can see that in IE the buttons are centered in that container – so rising – but in FF they are not – so they look okay.
    A common area where browsers disagree is ’em’ size – so fixing a size could help.

    (Btw, the lines in the above screenshot are from a ‘show blocks’ bookmarklet, so you can see how and where css is).

    Thread Starter wallace

    (@wallace)

    Thanks for the response!
    What do you mean by fixing a size?
    I changed font-size: 1.2em; to font-size: 12px; and still same problem in IE.

    Is there any way around this? I see many other people with navbars that don’t seem to have this issue but I cannot pinpoint what they did to get around it.

    Thread Starter wallace

    (@wallace)

    I saw something talking about how to box hack IE for width issues and it mentioned how to get a setting only IE would pay attention to so instead of width information I tried to apply it to my situation.

    I added the following at the end of my style.css:
    /* Fix for stupid IE handling of CSS blocks */
    * html #navcontainer {
    margin-top: -16px;
    }

    * html .narrowcolumn {
    margin-top: -12px;
    }

    * html #sidebar {
    margin-top: -12px;
    }

    * html .widecolumn {
    margin-top: -7px;
    }

    This allows the navbar block in IE to be lowered and line up properly (like FireFox is), and then I have to take away that lowering by using some negative top margins to get it to have the post and sidebar start in the same place as FireFox. This is quite nasty and it doesn’t solve Opera’s problem. Is there another solution?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘List location different between browsers’ is closed to new replies.