Login Register

Changing ComboBox Options Style/Font

For a standard HTML select I can do this:

style="font-family:Courier New; font-size:14pt;"

But for the Dijit ComboBox, it has no effect on the options; instead, it only
affects the style of the type-ahead area of the combo.

Any suggestions?

Thanks!

You need to override the

You need to override the style ".dijitComboBox input" ... the ComboBox is a combination of a textbox, and a div (that acts a lot like a dijit Menu)

Changing ComboBox Options Style/Font

Thanks, but it doesn't work, all it changes is the style of the textbox as before, not the option items. I tried this:

.dijitComboBox input{

font-size : 15pt!important;"
}

Anything else?

So you want to update the

So you want to update the drop down items? Those are of class .dijitMenuItem (or something like that). The easiest way to do it is look at dijit.css, and search for dijitComboBox.

Changing ComboBox Options Style/Font

Over-riding .dijitMenuItem did the trick, although when I look at dijit.css, to me it's not obvious why. But in any case, it's working properly now.

Thanks for pointing me in the right direction.