1 - I am dynamically feeding text into a textbox/div.
2 - I want to dynamically add an image right below each text.
3 - Problem: each text content takes a different amount of rows and height
4 - How should I calculate the position of the image then?
5 - I somehow need to figure out the text-rows, or div height that each text occupies perhaps.
6 - I think, if I create a textarea dynamically, i should be able to find the height or etc somehow
Since you're creating stuff dynamically. Place your image at the end of your text (or place the image in a div and place the text before. It has to flow with the text). Then position the image relative with css properties.