PDA

View Full Version : how to control the distannce between field anf the textfield



adms
7 Jun 2009, 12:13 AM
thank you for attention:
I want to control the distance between the label and the fieldlabel in my form.
making no distance between them.
i'm using this code
{
xtype:'textfield'
,fieldLabel : 'Name'
,labelWidth : 40
, labelSeparator : ' ' //to make no distance but it does not work.
, width : 300
}

:(((:|

Dmitry Dulepov
7 Jun 2009, 1:12 AM
There is a labelStyle property. Does it help if you set it to 'margin-right: 1em' or 'padding-right: 1em'?

Animal
7 Jun 2009, 2:44 AM
labelWidth!