[css-d] Navigation with lists soacing problem
Hi, Can anyone take a look at this page please: http://extranet.dabs.com/stuart/testnav.htm Ignore the rubbish font sizes and what not, I have chopped this section out of the bigger picture. Look at the list and you will see that in IE there are spaces between the seperate li, and in firefox, opera, etal. there are not. I have poured over this problem for long enough so if anyone can help then id really appreciate it. Im certain that its something small and stupid. Thanks for your help in advance... Stu. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Navigation with lists soacing problem
stu wrote: http://extranet.dabs.com/stuart/testnav.htm Look at the list and you will see that in IE there are spaces between the seperate li, and in firefox, opera, etal. there are not. Stu, The problem comes from the display: block on your a elements. Adding display: inline to their parent li's fixes it. Another solution is described here: http://www.communitymx.com/content/article.cfm?page=5cid=AC0B9 Zoe -- Zoe M. Gillenwater Design Specialist UNC Highway Safety Research Center http://www.hsrc.unc.edu __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
RE: [css-d] Navigation with lists soacing problem
zoe wrote: Stu, The problem comes from the display: block on your a elements. Adding display: inline to their parent li's fixes it. Another solution is described here: http://www.communitymx.com/content/article.cfm?page=5cid=AC0B9 Zoe Zoe, thats great. From all the solutions listed tbis one seems to be the one I needed (as in, the most elegant) What I dont understand is that i thought when you display an LI inline, its the same as it floating to the left. Thats why I didnt try it. Every day is a school day with css. Thanks to everyone else for your suggestions. STU. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/