title: Align Center - EXTJS 4
body: <pre><code>var loginForm = new Ext.form.FormPanel({
             frame: true,
             border: true,
             height: 155,
             width: 350,
             layout: {
              type: 'hbox',
              },
              items: [{
                       xtype: 'image',
                       src : 'images/system-users.png',
                       width: 100,
                     },{
                          xtype: 'container',
  
                          defaults: {
                              labelWidth: 80,
  
                          },
                          layout: {
                              type: 'vbox',
                              //align: 'stretch',
                              padding:'0 0 20 0'
                          },  
                         items: [{
                                   xtype: 'textfield',
                                   width: 250,
                                   id: 'username',
                                   fieldLabel: 'Username'
                                 },{
                                   xtype: 'textfield',
                                   width: 250,
                                   id: 'password',
                                   fieldLabel: 'Password ',
                                   inputType: 'password',
                                   submitValue: false
                                 },{
                                   xtype: 'hidden',
                                   id: 'challenge',
                                   value: "&lt;?php echo $challenge; ?&gt;",
                                   submitValue: false
                                 },btnLogin],
             }
             ]//contain items    
           });
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/2TH46.jpg" alt="enter image description here"></p>
  
  <h2>Question</h2>
  
  <p>this is an live demo <a href="http://jsfiddle.net/anthor/WM9DD/88/" rel="nofollow noreferrer">http://jsfiddle.net/anthor/WM9DD/88/</a><br>
  1)how to align center the login button?<br>
  2)the image and all textbox align center and middle of the window box.</p>