Here you go:
Live Demo
I took the liberty of adding cursor: pointer
to 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:
#container {
overflow: auto;
background: #ccc
}
.buttons {
float: left;
width: 30px;
padding: 0 3px
}
.buttons img {
cursor: pointer
}
.dropdown {
float: left;
width: 160px
}
HTML:
<div id="container">
<div class="buttons">
<img src="http://www.jgrmx.com/cgr/tiles/generic/images/icons/arrow-up.gif" id="up_button"><br>
<img src="http://www.jgrmx.com/cgr/tiles/generic/images/icons/arrow-down.gif" id="down_button">
</div>
<div class="dropdown">
<select multiple=true id="left" size="4">
<option>Patricia J. Yazzie</option>
<option>Michael A. Thompson</option>
</select>
</div>
<div class="buttons">
<img src="http://www.jgrmx.com/cgr/tiles/generic/images/icons/arrow-left.gif" id="add_button"><br>
<img src="http://www.jgrmx.com/cgr/tiles/generic/images/icons/arrow-right.gif" id="remove_button">
</div>
<div class="dropdown">
<select multiple=true id="right" size="4">
<option>Kevin C. Bounds</option>
<option>Patricia J. Yazzie</option>
<option>Michael A. Thompson</option>
<option>Mark D. Mercer</option>
</select>
</div>
</div>