What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How can I center align the options in a drop down field?Asked by eastendyves on November 06, 2016 at 03:44 PM
Can you please provide me with css to center align the options in a drop down field? Thanks.
in how a drop
Try injecting the following code: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes
Let us know if you need more help.
That works for the placeholder, but I have some options that are rather long and they get cut off on the right when selected (see image)...
Unfortunately, this is a limit in CSS and there is no way to center align the text in a dropdown.
There is a solution to center align only the last selected text but it's not working on Microsoft Edge browsers. Anyhow, you can try this CSS code for select menus:
Thank you very much, that solves the problem!