Hi, I need some help if possible! I'm designing a website for a local enterprise charity and I'm having trouble making the navigation work in ie7 - it works in all other browsers but in ie7 the nav bar is there but it's like it's a solid image, the rollover effect doesn't work and the links are ignored like they aren't there. The website can be seen in its temporary location here
Hello NicolaHWS,
Right off I notice you don't float .logo and use a negative margin to bring .tabs up alongside it. IE7 is famous for having trouble with negative margins...I pretty much make it a rule never to use them. If there is ever a case where negative margins seem to be the only way, it may actually be ap that is needed.
Not always, negative margins have their place. I don't think this is an example though.
So...
Floats are how we put elements beside each other. When you don't float .logo, .tabs has no way of being beside it.
Ironically, the tabs work fine in ie7, is the navigation down the side that's refusing to work. If I can't find a way I might just have to have in ie7 stylesheet and make the nav different, just won't look nearly as pretty is all Frigging ie7! Always screw up my designs, I usually don't bother with it anymore but this one will be looked at a lot by school pupils, and schools often have outdated browsers
The margin is that big to make absolutely sure no matter how high a resolution someone's screen is the background goes all the way across, I did try reducing it right down to see if it made a difference and it didn't
The margin is that big to make absolutely sure no matter how high a resolution someone's screen is the background goes all the way across, I did try reducing it right down to see if it made a difference and it didn't
Not sure what that means since your background is just a color. Since you don't specify a color, it's whatever I've set my browser with on my end.
It looks like you mean for #nav and #wrapper to be beside each other. That's normally done by floating one or both of those elements. Look at a simplified example of a 2-column layout here. It's very easy to adapt that to a full width page like yours.
The three things I highlighted in my previous post, the huge margins (both -/+) and the width of the ul are what are causing your problem. That and not understanding how floats solve your problem (like floating 100% width elements).
Another problem, you generically apply margin: 0 auto; to almost all your div elements. Auto margins is a centering technique and putting it on full width elements like the body of your document or an element that is supposed to go beside another like your #wrapper doesn't make sense.