Surprisingly in
<select>
<option>Text</option>
</select>
option {
text-align: right;
}
does not work, and I am in search of a solution to achieve this. I understand this is small question, but I can't figure out why it is not working
Surprisingly in
<select>
<option>Text</option>
</select>
option {
text-align: right;
}
does not work, and I am in search of a solution to achieve this. I understand this is small question, but I can't figure out why it is not working
Try with direction
attribute and use the direction right to left i.e. rtl
<select dir="rtl">
<option>Text</option>
</select>
Update : if you want to keep arrow icon to right with options to be aligned right
then you can just set the property on option
instead of select
option{
direction:rtl;
}