Regarding the CSS itself, that’s not a great way to do it. Floating the links isn’t much use if the list items are already inline. I suggest you just float the list items and set the links to display: block.
I do tend to float my anchors and set my li’s to display: inline (only for an obscure IE bug, otherwise I’d set no styles on the li at all) but ralph’s way can be simpler (less css to write). But here’s another way you could write it
(this is what I use if I have nested menus like a dropdown, where the sub li’s and a’s should not be inheriting these styles)
or
.horiNav() {
li {
display: inline;
}
a {
float:left;
}
}
for any simple menus who have no layers. So here I want the resulting CSS to simply be .horiNav a instead of .horiNav li a, which is redundantly redundant.
I actually hate writing LESS (and really hate debugging it), but if I have to, I might as well be lazy about it.