开发者

CSS Nav pushes right in IE 7

Can someone help me trouble shoot this nav in IE7? It jams right and I can't figure this darn problem out. http://brccycling.com/201开发者_如何学Go1/

Thanks,


The easiest way to fix this is to redo how you're placing the menu to a technique which will work between IE7/8 and other browsers such as Firefox:

  • On #top, add position: relative.
  • On #nav:
    • Remove float: left, because it's unneeded.
    • Remove the margin rule.
    • To replace what the margin was doing, add top: 260px, and left: 290px.

The technique we're now using (properly) is detailed here:

  • http://css-tricks.com/absolute-positioning-inside-relative-positioning/
  • http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜