I’m working on a vertical menu with separator (CSS-only). To hide these separator on hover I try to use a border + a negative margin (to cancel the border). But on Firefox it create a line break… How can I fix it? Thanks
http://jsbin.com/akazuf/1/edit (try the output in full)

Nota : the hover will be BLACK, red is for tests.
No resolution here : Separators For Navigation 🙁
If you don’t want line breaks at all, you can add
white-space: pre;to the#header .nav astyle.https://developer.mozilla.org/en-US/docs/CSS/white-space
Edit: A more elegant solution might be to switch the border directions (
border-lefttoborder-right,margin-righttomargin-left: