.cb-arrow {
cursor: pointer;
background: -moz-linear-gradient(center top,
rgb(242, 242, 242) 0%,
rgb(221, 221, 221) 50%,
rgb(207, 207, 207) 100%)
repeat scroll 0% 0% transparent;
border: 1px solid #707070;
-moz-border-radius-topright: 3px;
-moz-border-radius-bottomright: 3px;
padding: 0 3px;
margin-left:-5px
}
.combobox { border:1px solid #BBB; padding:2px 2px 1px 2px; margin:0 }
Not the prettiest solution but will work.
//EDIT: VERSION TWO
Scrap the javascript (for now). Add a container. Looks good in all, consistent in FF and Chrome:
HTML:
<div id='container'>
<input type="text" class="combobox" />
<button type='button' class='cb-arrow'>▼</button>
</div>
CSS:
#container { height:20px;line-height:20px }
.cb-arrow {
border: 1px solid #707070;
background:white;
margin:0;
padding:0;
margin-left:-5px;
vertical-align:middle;
}
.combobox {
border:1px solid gray;
border-right:0;
vertical-align:middle;
padding:1px
}