Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FormItem alignment problem

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
I have the following:

Code:
<mx:FormItem label="Fixed Total Charge:"  width="100%">
     				<mx:TextInput id="fixedChg"  width="50%" />
     		</mx:FormItem>	
                
            <mx:FormItem width="100%" direction="horizontal" horizontalAlign="left">
            	<mx:FormItem label="Per">
            	  	<mx:TextInput id="perUnit" />
            	</mx:FormItem>  	
            	<mx:FormItem label="Fixed Per Unit Charge">
            	   	<mx:TextInput id="perUnitChg" />
            	</mx:FormItem>
	        </mx:FormItem>

This will put "Per" under "Fixed total charge" text input. How can I align this so that "Per" will be under "Fixed Total Charge" instead of the textbox?
thanks in advance.

 
Don't forget to specify Vertical for the top form field(s)
Code:
<mx:Form>
	[b]<mx:FormItem direction="vertical">[/b]
		<mx:FormItem label="Fixed Total Charge:">
	         <mx:TextInput id="fixedChg" />
	    </mx:FormItem>
    [b]</mx:FormItem>[/b]
	<mx:FormItem direction="horizontal" >		
	    <mx:FormItem label="Per">
	    	<mx:TextInput id="perUnit" />
	    </mx:FormItem>      
	    <mx:FormItem label="Fixed Per Unit Charge" >
	    	<mx:TextInput id="perUnitChg" />
	    </mx:FormItem>
	</mx:FormItem>
</mx:Form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top