I am attempting to create a multi-select feature with only one horizontal scroll bar using bootstrap. However, I do not want each option to have its own horizontal scrollbar.
When I choose the longest option (123456789012345678901234567890), only part of the text is highlighted. The rest of the text remains unselected and hidden by scrolling to the right. How can this be resolved?
<div class="row w-50">
<div class="col">
<select multiple class="custom-select d-inline overflow-auto s1">
<option>123456789012345678901234567890</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>123456789012345678901234567890</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>123456789012345678901234567890</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
This is what I have tried so far: https://jsfiddle.net/sxb2tk97/
I have tested it in Chrome. However, when viewed in Safari, the horizontal scrollbar does not even appear. Is there a better solution that will work across all major browsers?