PDA

View Full Version : Set the font size of a button



glafrance
13 Jul 2012, 4:20 PM
I'm trying to set the font size of a button like this:

items: [
{
xtype: 'button',
id: 'loadDataBtn',
text: 'Load Module Data',
style: {
"font-size": '30px'
}
}
]
I don't want to use a css file at this point, I just want to set the font size as I define the item.
Why does the above not work? Seems like this should be simple.

skirtle
13 Jul 2012, 4:24 PM
You're setting the font-size on the outer div. The CSS that determines the size of the button text is on the span immediately surrounding the text.

scottmartin
13 Jul 2012, 8:29 PM
Please do not double post:
http://www.sencha.com/forum/showthread.php?230206

Scott.