My company had a website we're working on redone by a designer. It looks much better, but I've hit a snag implementing their design in HTML+CSS. They have a heavily styled <select>
box, so much so that I couldn't recreate it with pure CSS. I found a solution that uses Javascript to replace the <select>
box with a <ul>
. This works almost perfectly, but there are two problems with it:
- It doesn't scroll when there are many elements.
- It doesn't close when you click outside of the dropdown.
I've played around with it in Firebug, but becuase the <li>
s are styled with display:block
, they don't seem to be contained by the surrounding <ul>
, which means I can't set a maximum height.
Issue #2 is not as important, but it would be nice to know how to fix that as well.
Here's a link to the problem page: http://www.truwindshield.com/test2/