Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

Manage font size of dropdown menu items

How do I change the font size of dropdown menu items?

                   dcc.Input(id='address_autocomplete', style={'width':'76%'}),
                                placeholder="Address Suggestions",
                                style={'width':'100%', 'display':'inline-block'})
               style={'margin-top':'30px', 'width': '53%', 'float': 'left'},

Screenshot 2020-07-19 at 9.27.12 PM

Hi @keval

Try adding something like 'font-size' : '85%' to the
style={'width':'100%', 'display':'inline-block'}

You could either:

Change the css property in a stylesheet:


.Select-menu-outer {
    font-size: 10px;

or increase the optionHeight value (the default is 35px):

dcc.Dropdown(id="my-dropdown", optionHeight=55, ...)