PDA

View Full Version : Radiogroup font style changes



fff398
11 Mar 2010, 11:32 AM
I am trying to change the font of the labels in my radio group. I've tried two methods that I thought might work, but no luck with either




(in my CSS file)
.radioCheckFont item
{
font-size: 22px !important;
}

{
xtype: 'radiogroup',
columns: [100, 100],
items: [
{ boxLabel: 'Yes', name: 'answer', inputValue: 1, style: { fontSize: '22px'} },
{ boxLabel: 'No', name: 'answer', inputValue: 2, itemCls: 'radioCheckFont'}]
},


EDIT: Figured it out, had to override my CSS correctly to override the right class



(in my CSS file)
.radioCheckFont .x-form-check-wrap
{
font-size: 22px !important;
}

{
xtype: 'radiogroup',
columns: [100, 100],
items: [
{ boxLabel: 'Yes', name: 'answer', inputValue: 1, style: { fontSize: '22px'} },
{ boxLabel: 'No', name: 'answer', inputValue: 2, itemCls: 'radioCheckFont'}]
},