2 Replies Latest reply on Nov 7, 2007 8:35 AM by cols2910

    Too much surrounding space in mx:Text

    cols2910
      Hi,

      I have the following code

      <mx:HBox xmlns:mx=" http://www.adobe.com/2006/mxml" width="1000" height="600" backgroundColor="#FF9933">

      <mx:Style source="Assets/Styles.css" />

      <mx:VBox width="80%" height="100%">

      <mx:Text styleName="Text3" width="100%" height="249" textAlign="left">
      <mx:htmlText>
      <![CDATA[
      <UL>
      <LI>embarrassed you in front of guests</LI><LI>dragged you for a walk</LI><LI>generally been unruly</LI>
      </UL>
      ]]>
      </mx:htmlText>
      </mx:Text>

      </mx:VBox>

      <mx:VBox>
      <mx:Canvas styleName="Canvas2" width="100%" height="100%">
      <mx:Image source="Assets/Dog-Amended.png" height="387" width="243"/>
      </mx:Canvas>
      </mx:VBox>

      </mx:HBox>
      However, the text displayed has far too big a border around it. I have tried shrinking the Text container, but that only serves to cut off some of the text entirely.

      How can I have this text sit flush with the top of the container or as near as damn it?

      Any help greatly appreciated

      Thanks,
      Col