YossiBz Posted June 2, 2020 Share Posted June 2, 2020 I want to align the text in datalist options to right.. there is a way to do this? Link to comment Share on other sites More sharing options...
JMRKER Posted June 4, 2020 Share Posted June 4, 2020 Do you have some example code or display of what you are trying to do? "To the right.." of what? Contents of data list as a list? Link to comment Share on other sites More sharing options...
shaili_shah Posted June 5, 2020 Share Posted June 5, 2020 In simple HTML form you can use direction attribute. Default is " ltr " means left to right. You make it " rtl " means right to left align. <select dir="rtl"> <option>Home</option> <option>Menu</option> </select> And in datalist use "text-align" attribute. I hope it'll helpful to you. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now