I have created a custom drop-down element, which is listed on this page:
Click on the drop-down menu in the “Result” secion, and you will see the problem. By rolling over the choices in the expanded drop-down list, you notice the roll-over indicators don’t stretch to the available width.
While still maintaining the width of the menu when it was collapsed, how can I stretch the background color of each menu item? I’d also like each of the menu items to remain on their own line. A couple of adjustments that I made the CSS caused some of the list items to wrap their own text.
Thank you for your time.
Use negative margins with
width: autoinstead ofwidth: 100%for items:See http://jsfiddle.net/2snUH/4/ .
Or get rid of horizontal padding for
UL(and specify horizontal padding forLIinstead), and then you will not need negative margins forLIitems.