5 Replies Latest reply on May 22, 2008 10:15 PM by Shelady

    Please help with simple code. Picture and text formatting.

    Shelady Level 1
      Hi,
      I want to design a HBox. I want to put the picture on the left and text on the right and bootom . I am having 2 problems.

      1- I want to start text where picture ends leaving 10 pix in between.
      2- I want the text to flow below the picture too.

      Here is my code.

      Please help.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:HBox id="LowerLeft" width="30%" height="80%" borderStyle="solid" borderColor="#fffffc" borderThickness="2">
      <mx:Image id="image1" source="1.jpg" height="100" width="150"/>
      <mx:TextArea height="172" width="288" horizontalScrollPolicy="off" verticalScrollPolicy="off" letterSpacing="1" backgroundAlpha="0" borderThickness="0" fontSize="12" fontFamily="Times New Roman" wordWrap="true" textAlign="left" backgroundColor="#869ca7" color="#ffffff">
      <mx:htmlText>
      <![CDATA[This is cardiovascular medicine.translate the extraordinary progress of Promote heart health. At the nucleus of SCVI is a richl as it iscardiovascular medicine

      This is cardiovascular medicine.translate the extraordinary progress of science and rich thing.

      Cardiovascular medicineThis is cardiovascular medicine.translate the extraordinary progress. ]]></mx:htmlText>
      </mx:TextArea>
      </mx:HBox>

      </mx:Application>