Hi,
The text of the elements of my select is too large and I'd like to divide it in two lines. I've tried to insert <br> tag but it has no effect.
How can I resolve it?
Vragabond is right - shorter text, smaller font-size or wider dropdowns are your only options if you want to continue using <select> dropdowns.
Maybe CSS dropdowns would be appropriate instead, they are very easy to modify - but I'm afraid I don't know the context of your dropdown so I can't really comment.
Do you have a link you could post? What does the dropdown do on your page?
Not much you can do about the double line, unless you put a blank option between them, as for the font-size try setting it in a in-line style.
ie.
Code:
<SELECT NAME="textsize" style="background:red;color:white;font-size:16px;word-spacing:7px">
<OPTION VALUE="s">Small Font
<OPTION VALUE="m">Medium Font
<OPTION VALUE="l">Large Font
</SELECT>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.