Topic: Select options size
Is it possible to resize the options in a select component? I'm using the
size="sm" option which makes the input area smaller, but the options remain the regular size in the dropdown when I would like them to be smaller as well. Do I need to use text classes and the
option-height option to resize them?
Yes, you can style options with
This snippet shows how to resize the options and search filter in a
<select> component proportionately according to the
It uses the
data-mdb-container attribute to apply CSS.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.7.1
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No