I’m attempting to make my form pretty I’m not sure what I’m doing. I’ve got two select boxes and two sets of icons that I would like to format like this:
^ +-------------+ +--------------+
| | | <-- | |
| Select 1 | --> | Select 2 |
| | | | |
v +-------------+ +--------------+
The left and right icons in the middle move items to and from the Select boxes and the up and down arrows on the left move items in Select 1 up and down. Whats an easy to way to get this layout with css? I’ve been able to hack something together with a table I’ve had no luck with a pure css solution.
Here you go:
Live Demo
I took the liberty of adding
cursor: pointerto the buttons. It would be better from a semantic point of view if you changed them from<img>tags to<a>tags.I also added
size="4"to the<select>tags to ensure consistent height between different browsers.I didn’t touch the JS.
Tested in IE7/8, Firefox, Chrome, Opera, Safari.
CSS:
HTML: