Dec 15, 2011, 5:02 PM
How to center a label?
No matter what a try I cannot seem to center the contents of a label? Setting a text-align:center in css doesn't seem to work. How is the ext:CenterLayout used? The CenterLayout example doesn't even use a ext:CenterLayout tag.
The idea would be a status message on a form, but I want it centered. Labels default to left align and I can't seem to override that.
For example, i want the label only on this sample form below to center it's contents. Why is there no Align (contents) options for tags? Wrapping it with a ext:CenterLayout doesn't work.
The idea would be a status message on a form, but I want it centered. Labels default to left align and I can't seem to override that.
For example, i want the label only on this sample form below to center it's contents. Why is there no Align (contents) options for tags? Wrapping it with a ext:CenterLayout doesn't work.
<ext:Panel>
<Items>
<ext:TextField/>
<ext:TextField/>
<ext:TextField/>
<ext:Label ID="errorMessage" Align="center" Cls="red" />
</Items>
</ext:Panel>
Last edited by geoffrey.mcgill; Dec 15, 2011 at 7:27 PM.
Reason: please use [CODE] tags