# Placing img inside txtfields

**URL:** <https://forum.kirupa.com/t/placing-img-inside-txtfields/64484>\
**Category:** Uncategorized\
**Created:** [September 16, 2004, 5:55pm UTC](https://forum.kirupa.com/t/placing-img-inside-txtfields/64484 "2004-09-16T17:55:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pete](https://forum.kirupa.com/u/pete)\
**Post date:** [September 16, 2004, 5:55pm UTC](https://forum.kirupa.com/t/placing-img-inside-txtfields/64484/1 "2004-09-16T17:55:20Z")

</div>

hello,

have another question:  
(i think i already know the answer but i also think some experts will maybe have an answer 🙂  
okay, i would like to place a picture inside my txt with html, i am able to do that but i want the picture between the text, neither left or right of it but betweeen ☹  
like this:  
myTxt.htmlText = “this is my IMAGE \<img src=‘mc’ \> and this is some more text”;

Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 17, 2004, 8:45am UTC](https://forum.kirupa.com/t/placing-img-inside-txtfields/64484/2 "2004-09-17T08:45:03Z")

</div>

Hello,

Thats was my need too. But its not possible to get u r image aligned to CENTER by using:  
\<IMG SRC=‘img.jpg’ ALIGN=‘center’\>  
You can either align it to right or left. So what I can only suggesst is to get ur &nbsp; to insert a space character before an image. I know this doesnt sound logical and might be suitable where u have varying sizes of textField.

Still if u get it work OR anyone else has got a solution over i would really appreciate it.

* * *

aShIsH

> [@pete](#):
>
> hello,
> 
> have another question:  
> (i think i already know the answer but i also think some experts will maybe have an answer 🙂  
> okay, i would like to place a picture inside my txt with html, i am able to do that but i want the picture between the text, neither left or right of it but betweeen ☹  
> like this:  
> myTxt.htmlText = “this is my IMAGE \<img src=‘mc’ \> and this is some more text”;
> 
> Thanks,
