You have to give the li
an explicit width that will be greater than or equal to the width of the a
when it's expanded. Now this would mean that your li
won't be able to grow in width according to the length of its text. If that's what you need as well, I have no solution for that and I open it up to the great people of Stack.
http://jsfiddle.net/TreeTree/M5XPZ/
.listedLink {
position:relative;
margin: 5px 0 0 0;
width:100px;
display: inline-table;
float:left;
border:1px solid black;
}