The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I'm not sure if I understand hurricanedan's question properly, but I thought he wanted the exact opposite of that: to have the border be 10 pixels shorter than the list item, not to have it extend 5 pixels on either side of the item's content.

Besides, Dave, even if I got it wrong, surely it would be padding:0&#160;5px rather than the other way round? You're adding 5 pixels of vertical padding and no horizontal padding.

But one dashed and one solid line appear right after another when I have a submenu displayed. The solid border appears below menu 1 and menu 3; the dashed border appears below submenu 1 and submenu 2; the solid border for menu 2 appears below the dashed border of submenu 2.
Like this: