PDA

View Full Version : Right justify displayfield



wskent
10 Oct 2010, 6:56 PM
What is wrong with the following code? Just wanting to right justify the date?

xtype: 'displayfield',
id: 'refreshTime',
style: 'text-align: right',
value: new Date()

laurentParis
10 Oct 2010, 8:12 PM
I think that you make other error but your code is correct... I only suggest add ';' => 'text-align: right;'

use firebug and try to determine witch style or css pass over "text-align: right;"