-
1 Attachment(s)
Help with Form
Please a need some help help with Form's. All label are centered... what i'm doing wrong!!?
This is the form source (like the dynamics example):
Code:
// turn on validation errors beside the field globally
Ext.form.Field.prototype.msgTarget = 'side';
function makeForm(){
Ext.QuickTips.init();
var simple = new Ext.FormPanel({
labelAlign: 'top',
frame:true,
title: 'Multi Column, Nested Layouts and Anchoring',
bodyStyle:'padding:5px 5px 0',
width: 675,
items: [{
layout:'column',
items:[{
columnWidth:.5,
layout: 'form',
items: [{
xtype:'textfield',
fieldLabel: 'First Name',
name: 'first',
anchor:'95%'
}, {
xtype:'textfield',
fieldLabel: 'Company',
name: 'company',
anchor:'95%'
}]
},{
columnWidth:.5,
layout: 'form',
items: [{
xtype:'textfield',
fieldLabel: 'Last Name',
name: 'last',
anchor:'95%'
},{
xtype:'textfield',
fieldLabel: 'Email',
name: 'email',
vtype:'email',
anchor:'95%'
}]
}]
},{
xtype:'htmleditor',
id:'bio',
fieldLabel:'Biography',
height:200,
anchor:'98%'
}],
buttons: [{
text: 'Save'
},{
text: 'Cancel'
}]
});
simple.render('content');
};
Thanks in advance...
Paulo
-
The erro, is my CSS
My css have a text-align: center in tag BODY, to center the main_div in screen.
How can i resolve this!?
-
Resolved
.... so easy... it's time to sleep...
xiiiii