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
, addposition: relative
. - On
#nav
:- Remove
float: left
, because it's unneeded. - Remove the
margin
rule. - To replace what the
margin
was doing, addtop: 260px
, andleft: 290px
.
- Remove
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/
精彩评论