Topic: mdb select width fit content
Expected behavior mdb select width is as content length/width
Actual behavior content is ignore and widtb is determined by itger clasess / container
how to set select width to be exactly content length (or even widthier for eg 20px)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.4.1
- Device: desktop
- Browser: chrome
- OS: windows
- Provided sample code: No
- Provided link: No
Tags
Related topics
NSPA pro premium priority commented a year ago
Facing the same problem, my workaround:
.select-dropdown-container { min-width: max-content!important;}
sody pro premium priority commented a year ago
great!! thank you!!