I have a selection box that I want to align to the right, but I want the dropdowns to be aligned to the left. For instance:
<select>
<option>item</option>
</select>
And CSS:
select { direction: rtl; }
option { direction: ltr; }
But setting the direction of the select tag also sets the direction of the drop-down menu. See here
Is it possible? I know that as an alternative, I could create a custom select function using js, but I would like it to be simple if possible.
source
share