Adobe Dreamweaver Forums



Last 10 THreads :         Can I compile FlexBuilder code with Flex SDK? (Last Post : pxstein - Replies : 0 - Views : 1 )           »          Custom Preloader (Last Post : marcelomdsc - Replies : 0 - Views : 1 )           »          IE doesn't like my Liquid Page (Last Post : TH1995 - Replies : 0 - Views : 1 )           »          div background not appearing - fresh eyes needed (Last Post : courtney (n h c) - Replies : 1 - Views : 2 )           »          how do I get back the "upload dependent files?" popup? (Last Post : Alan - Replies : 1 - Views : 2 )           »          how do I get back the "upload dependent files?" popup? (Last Post : jamieschmid - Replies : 0 - Views : 1 )           »          remove editable region (Last Post : Alan - Replies : 1 - Views : 2 )           »          CS4 trials expired too early (Last Post : walla walla - Replies : 10 - Views : 11 )           »          Cotrolling Separate Movie Files (Last Post : aquachong - Replies : 3 - Views : 4 )           »          Fill graphics (Last Post : rtalton - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , ,



Reply
  #1 (permalink)  
Old 07-24-2008, 04:08 PM
kilyas2007
 
Posts: n/a
Diggs:
Default text alignment in a form

I have a form with various fileds like:-

Name
Address
Fax

etc., Now I want the labels in the form to be left aligned and the tex input
fields to be aligned right, for the purpose I am using the following code:-


<mx:FormItem label="Company Id" textAlign="left">
<mx:TextInput id="companyId" data="{model.companyId}"
enabled="{model.comapanyIdEditable}" styleName="gradientRectangleSkin"
textAlign="right"/>
</mx:FormItem>


This however doesn't seem to work, what is it that I am missing?

Thanks in advance.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 04:09 PM
Developer504
 
Posts: n/a
Diggs:
Default Re: text alignment in a form

[q]Originally posted by: kilyas2007
I have a form with various fileds like:-

Name
Address
Fax

etc., Now I want the labels in the form to be left aligned and the tex input
fields to be aligned right, for the purpose I am using the following code:-


<mx:FormItem label="Company Id" textAlign="left">
<mx:TextInput id="companyId" data="{model.companyId}"
enabled="{model.comapanyIdEditable}" styleName="gradientRectangleSkin"
textAlign="right"/>
</mx:FormItem>


This however doesn't seem to work, what is it that I am missing?

Thanks in advance.[/q]

Have you set layout="Absolute" on your app?



Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 04:45 PM
kilyas2007
 
Posts: n/a
Diggs:
Default Re: text alignment in a form

If I set the layout to absolute I would have to specify the location
coordinates of all the inputs or else they would stack on top of eachother,
this is something I don't want to do. Are there any other options?

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk