I have legibly long text in a drop-down list on my asp.net page. it violates the UI boundary and goes beyond the allocated region of UI.
Is there anyway I can wrap [not trim] it using CSS or javascript ? I must display the entire string, no matter how long it is.
Longer answer: yes.
You can use not default element, but make your own with JavaScript and CSS. Your custom droplist element should contain few divs (or other HTML elements) as droplist items. When you'll set fixed width to droplist's cell, text will wrap inside.
Short answer: No.
Longer answer: User a radio group instead of a select menu. You could use the CSS overflow
property to add scrolling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With