PLEASE HELP!! align "justify" issue

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default PLEASE HELP!! align "justify" issue

    Hello,

    I want to display paragraph contents on a webpage with a "justify" alignment.
    So, I have created a text control in mxml but dicovered that the textAlign
    property only supports three values - 'right','left' and 'center'

    To workaround this problem, I used htmlText property with html tag align =
    'justify' in my mxml script.. As shown below.

    textField.htmlText = "<p align='justify''> Headquatered in
    London..............</p>";

    This does not work. I also tried as shown below

    textField.htmlText = "<p align=\"justify\"> Headquatered in London.......</p>";

    Unfortunately this does not work either.

    However, If I pass any other value other than 'justify'(Right,Left,Center) it
    works. This means that even html formatting for suported tags in mxml does not
    work and I think this is a bug becuase <p> and <align> html tags are supported
    in mxml.

    Is there any way to get this done in mxml? I need to have a 'justify'
    alignment for all my contents of the webpage and other options are not
    acceptable at all. PLEASE HELP!!

    Other alignments such as 'right', 'left' and 'center' would make webpage
    contents ugly and not acceptable at al;l.

    Thanks,

    Ruchir


    ruchir123 Guest

  2. Similar Questions and Discussions

    1. align = 'justify' does not work
      Hello, I want to display paragraph contents on a webpage with a "justify" alignment. So, I have created a text control in mxml but dicovered that...
    2. align "right" the text inside a text field?
      hi: this is the code i've used: <STYLE type="text/css"> <!-- ..totalField { font-weight: bold; text-align: right; }
    3. Text align as Justify looking weird
      Hi all, I noticed that when I give the text-align style as "justify", the words are unevenly spaced to justify the alignment. But it looks really...
    4. "replace pages" / "rotate pages" orientation issue
      in Adobe acrobat you can open a PDF file and "replace pages" (some or all) with pages from another PDF file. it used to be that when I did this,...
    5. Missing "Align" Window and other bugs
      I know I'm not the only one with this problem - has anybody got a fix? It's really doing my head in. To clarify - Click Window - Align. I get an...
  3. #2

    Default Re: PLEASE HELP!! align "justify" issue

    Hi,
    here sampl

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
    load="addtextx();">
    <mx:Script>
    <![CDATA[
    function addtextx(){
    yeni.htmlText="all <p>html </p> <br>possible";
    }
    ]]>
    </mx:Script>

    <mx:TextArea editable="false" hScrollPolicy="off" vScrollPolicy="off"
    width="98%" height="350" horizontalGap="0" verticalGap="0"
    borderColor="#FFFFFF" id="yeni" />
    </mx:Application>

    Tiberian Guest

  4. #3

    Default Re: PLEASE HELP!! align "justify" issue

    for justify use in css

    text-align: justify;

    Tiberian Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139