开发者

Firefox 3.5.3 horizontal menu drop-off

开发者 https://www.devze.com 2022-12-08 15:30 出处:网络
URL:www.htiops.com CSS:www.htiops.com/css/htiOps.css The last two links in the gray horizontal nav bar are vertically dropping down in FF 3.5.3. It doesn\'t happen in older versions of FF, IE7, O8, S

URL: www.htiops.com

CSS: www.htiops.com/css/htiOps.css

The last two links in the gray horizontal nav bar are vertically dropping down in FF 3.5.3. It doesn't happen in older versions of FF, IE7, O8, Saf3.

Changing the font in #navBar ul li a from .8em to 10px fixes the drop-off problem, but is not t开发者_如何转开发he desired appearance of the menu.

Any thoughts?


The problem is that all the elements are too wide for the container and they are wrapping. I had the exact same thing in Wordpress recently. I shortened the text and it worked fine.

One thing that works - as a hack - is:

#navBar ul {
    margin: 0px;
    padding: 0px;
    color: #fff;
    float: left;
    font-weight: bold;
    display:block;
    width: 120%;          <-- from 100%
}

Perhaps you can play with the widths and get it all to fit, or shorten some words. (I know, it's a hack and I don't like them, but it's fast and looked ok to me :)

0

精彩评论

暂无评论...
验证码 换一张
取 消