# htmlText hell

**URL:** https://forum.kirupa.com/t/htmltext-hell/291424
**Category:** flash
**Created:** [June 29, 2009, 5:54pm UTC](https://forum.kirupa.com/t/htmltext-hell/291424 "2009-06-29T17:54:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Didi32](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Didi32](https://forum.kirupa.com/u/Didi32)
#### Post date: [June 29, 2009, 5:54pm UTC](https://forum.kirupa.com/t/htmltext-hell/291424/1 "2009-06-29T17:54:00Z")

</div>

Hi, I’m using htmlText property for some text, what I’m doing is 3 images aligned to the left, one under the other, and allow each line of text to be next to one image.

Here is the html used:  
\<img src=“image1.png” width=“50px” height=“50px”/\>\<p\>First line to be next to image 1\</p\>  
\<img src=“image2.png” width=“50px” height=“50px”/\>\<p\>Second line to be next to image 2\</p\>  
\<img src=“image3.png” width=“50px” height=“50px”/\>\<p\>Third line to be next to image 3\</p\>

I expect each line to appear right next to the image, but instead of that, when I use the string with textField.htmlText = myString;

I get all the sentences next to my image1.png, not each next to their own image. I’ve tried anything, adding style and putting a height to the p tag, no effect. I’m running out of ideas. This seems rather elementary to achieve, however, it seems very complicate with AS3.

Thanks for your help,
