Nov 06, 2017, 4:24 PM
[CLOSED] How to center align an Ext.Net Label?
Hi, i'm pretty new to Ext.Net and could use some layout help with my Ext.Net label.
From my understanding, the stylespec property lets me add some css directly to a component like this:
There's also a separate CSS style that applies to this label to stretch it out to the full width of the container it is in.
Yet, this label stubbornly remains left justified within its container. Please advise, thanks.
From my understanding, the stylespec property lets me add some css directly to a component like this:
<ext:Label runat="server" Text="Or" ID="txtOr" StyleSpec="position: absolute; text-align: center"/>
My label is nested within several other containers, which is why I'm using absolute position.There's also a separate CSS style that applies to this label to stretch it out to the full width of the container it is in.
Yet, this label stubbornly remains left justified within its container. Please advise, thanks.
Last edited by fabricio.murta; Dec 26, 2017 at 2:56 PM.
Reason: no feedback from the user in 7+ days