# Flex form layout - add first child vertically aligned with label

**URL:** https://forum.kirupa.com/t/flex-form-layout-add-first-child-vertically-aligned-with-label/314260
**Category:** flash
**Created:** [September 23, 2010, 2:26am UTC](https://forum.kirupa.com/t/flex-form-layout-add-first-child-vertically-aligned-with-label/314260 "2010-09-23T02:26:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![karthikus](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@karthikus](https://forum.kirupa.com/u/karthikus)
#### Post date: [September 23, 2010, 2:26am UTC](https://forum.kirupa.com/t/flex-form-layout-add-first-child-vertically-aligned-with-label/314260/1 "2010-09-23T02:26:08Z")

</div>

Hi all…  
In flex form layout  
\<mx:Form id=“form”\>  
\<mx:FormItem label=“horizontal:”\>  
\<mx:Text text=“test”/\>  
\</mx:FormItem\>  
\</mx:Form\>  
the output will be  
horizontal ‘test’  
But my constraint is i want to align the textbox(first child of the form item ) vertically with the label. How can i do this ?Any inputs invited
