actionscript 3 - Flex 4 - How to align FormItem Label and TextInput? -
i have formitem label , textinput controls.
sample code
<s:formitem id="mobilelabel" label="mobile number"> <s:textinput id="mobileinput"/> </s:formitem> <s:formitem id="emaillabel" label="email id" required="true"> <s:hgroup> <s:textinput id="emailinput"/> <s:label id="bindinglabel" text="@xyz.com"/> </s:hgroup> </s:formitem>
output this:
how align label text bottom of label? this
you can use hgroup's proberty verticalalign. hgroup statement like:
<s:hgroup verticalalign="middle"> <s:textinput id="emailinput"/> <s:label id="bindinglabel" text="@xyz.com"/> </s:hgroup>
Comments
Post a Comment