Topic: select dropdown option text wrap.

jcarvalho priority asked 3 weeks ago


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

jcarvalho priority answered 2 weeks ago

Thank you. It worked. Appreciate for putting the sample.

Kamila Pieńkowska staff answered 2 weeks ago

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • 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