stublackett Posted September 25, 2008 Share Posted September 25, 2008 Hi, I've got a list coded in CSS as follows : HTML...... <div id="top_nav"> <ul> <li><a href="http://www.toquesnuff.com/shop" class="opacityit"><img src="http://www.toquesnuff.com/shop/skins/ToqueSnuffV3/images/home_btn.jpg" alt="Home" border="0" /></a></li> <li><a href="#" class="opacityit"><img src="http://www.toquesnuff.com/shop/skins/ToqueSnuffV3/images/buy_btn.jpg" alt="Buy Now" border="0" /></a></li> <li><a href="#" class="opacityit"><img src="http://www.toquesnuff.com/shop/skins/ToqueSnuffV3/images/testimonials_btn.jpg" alt="Testimonials" border="0" /></a></li> <li><a href="#" class="opacityit"><img src="http://www.toquesnuff.com/shop/skins/ToqueSnuffV3/images/contact_btn.jpg" alt="Contact us" border="0" /></a></li> </ul> </div> CSS..... #top_nav ul { list-style: none; } #top_nav li { display: inline; padding-right:15px; } The list loads perfect in IE : http://www.toquesnuff.com/shop/ (Its the top menu) But when loaded in FireFox, The image links drop below the bar, Any ideas how I can prevent this? Quote Link to comment Share on other sites More sharing options...
Zane Posted September 25, 2008 Share Posted September 25, 2008 try putting float:left into your li CSS EDIT: nevermind that...I misread your post try it anyway...it might work...lol Quote Link to comment Share on other sites More sharing options...
stublackett Posted September 25, 2008 Author Share Posted September 25, 2008 Haha, Nice try... The float didnt do a think I'm messing about with the padding, But its just making it look daft in IE now aswell ??? Quote Link to comment Share on other sites More sharing options...
haku Posted September 25, 2008 Share Posted September 25, 2008 You have to set the top margin of: #top_nav ul to zero. Quote Link to comment Share on other sites More sharing options...
stublackett Posted September 25, 2008 Author Share Posted September 25, 2008 You have to set the top margin of: #top_nav ul to zero. Thanks haku Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.