Hybrid View
-
11 Feb 2008 6:39 PM #1
How to make the form panel or any other panel align center?
How to make the form panel or any other panel align center?
Hi,
I just create a simple form panel, everything was fine, but I cannot make the panel locate at center of page, for example, I make it as
all items within the form panel are become align center like the 1st attachments, and the 2nd one is normal view, please help, thank youCode:<div id="newConference" align="center"></div>
I LOVE EXTJS
-
12 Feb 2008 1:56 AM #2
i've done this with a table:
and give your formpanel theHTML Code:<table align="center" class="contenttable" cellpadding="0" cellspacing="0" border="0"> <tr> <td id="content"></td> </tr> </table>
option, that render your formpanel to the id of the table cell.Code:renderTo: 'content',
-
12 Feb 2008 6:39 PM #3
-
23 Sep 2009 3:21 PM #4
I know is late, but just for the record:
You can use alignTo() or anchorTo() from Element methods... check API.
Cheers!
Juvs


Reply With Quote