Topic: select dropdown option text wrap.
Hi
How to do select dropdown option long text to wrap?
I have defined the css as below but it is not wrapping.
select-option-text { width: auto !important; overflow-wrap: break-word; white-space: normal; word-wrap: break-word !important; display: inline-block;}
also tried adding data-mdb-option-height="100" to select. but no luck.
Please make a note that it is on the mdb modal
Kamila Pieńkowska staff answered 7 months ago
I've prepared a snippet for you: https://mdbootstrap.com/snippets/standard/kpienkowska/6132313
jcarvalho pro premium priority answered 7 months ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 7.1.0
- Device: mac
- Browser: google chrome
- OS: mac,linux
- Provided sample code: No
- Provided link: No