I'm trying to apply a text-overflow on the options of a select with multiple. However, I can't seem to touch the options text.
Here is my HTML:
<select id="multiselect" multiple="" size="6">
<option value="123456780123456780123456780123456780123456780123456780" selected="selected">123456780123456780123456780123456780123456780123456780</option>
<option value="other" selected="selected">other</option>
</select>
And here is my CSS:
#multiselect {
width: 222px;
border-top: 2px solid #ccc;
float: none;
background: #fff;
outline: none;
margin-right: 0;
margin-left: 5px;
border-radius: 0;
margin-bottom: 11px;
overflow: hidden;
text-overflow: ellipsis;
}
#multiselect option {
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
width:222px;
}
I know the text-overflow is repeated when it should (I think) only be applied to the option, but I wanted to demonstrate how it wasn't working in either solution.
Does anyone have any experience with this?