I have a select box that I want to be aligned to the right, but I want to keep the options dropdown aligned to the left. Like so:
<select>
<option>item</option>
</select>
And the CSS:
select { direction: rtl; }
option { direction: ltr; }
But setting the direction of the select tag also sets the direction of the select dropdown menu. See here
Is this even possible? I know that I could, as an alternative, build a custom select functionality with js, but I'd like to keep it simple if I can.
.1
is a wrong selector. You should escape it:.\000031
. – Tinkling