am having prob with IE6, it’s giving either <li> or <a> more height than it should; I have run into this problem before, I usu. solve by adding overflow:hidden to element for IE6, but it’s not working in this instance…
it’s hard to trouble-shoot because when I put borders around either <a> or <li> elements problems goes away (so I don’t even know whether IE6 is adding height to <a>'s or <li>'s…)
I cannot give either <li>'s or <a>'s specific heights (even just for IE6) because some of the links will be one line long, some will be two lines long, and some will be three lines long…
I added padding-top & bottom 0 for IE6, it still adds all that space on top…
would appreciate some help; css is with markup… thank you very much…
Yes display:inline would make it go side by side but because the anchor was made a block level element it still goes vertical and the list element is basically left behind and occupies no space in the flow.
When it was a block element it suffers form a whitespace bug unless you set it to display:inline or float it. Even haslayout doesn’t kill the space completely and if you need to use the list for other content then give it a width and float it (and add clear:both to it also to stop it going horizontal).