PDA

View Full Version : How to change the font of combobox dropdown items?



ssa962
17 Aug 2007, 8:22 AM
I have tried the following without any luck

The CSS style of the drop down -


.cbodropdown {
font: 8pt Verdana, Tahoma;
font-weight:normal;
}

The code to use the above style -


var search = new Ext.form.ComboBox({
cls: 'cbodropdown',
listClass: 'cbodropdown',
...
});


The API documentation says listClass is the "CSS class to apply to the dropdown list element (defaults to '') "

Any idea what I am doing wrong?

Animal
17 Aug 2007, 10:12 AM
Where is your CSS <style> element?

If it's in Ajax-loaded content then it will not be processed.

ssa962
18 Aug 2007, 3:32 AM
Where is your CSS <style> element?

If it's in Ajax-loaded content then it will not be processed.

Excuse my ignorance as I am new to CSS. But where do I need to specify the <style> element?

justCharlie
19 Aug 2007, 11:09 AM
try putting !important after your css properties. I believe the ext css takes over the precedence(sp?) of your css.