Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: select dropdown option text wrap.

jcarvalho priority asked 6 months ago


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


jcarvalho priority answered 6 months ago


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


Kamila Pieńkowska staff answered 6 months ago



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

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