PDA

View Full Version : Image to float inside a Flex text area


nikos101
07-21-2008, 12:32 PM
As far as I am aware, it is not possible to get an image to float inside a Flex textArea by applying css to htmlText code.

What do you think?

Ricky158
07-28-2008, 08:14 PM
As far as I am aware, it is not possible to get an image to float inside a Flex textArea by applying css to htmlText code.

What do you think?
"Float" inside? Just overlay the image by using the Image component and place it over the TextArea component. If it needs to be placed a bit more dynamically, use the Constraints to bind it to the sides of the container.

nikos101
07-28-2008, 09:03 PM
Yes but the image must interact with the text

Ricky158
07-28-2008, 09:37 PM
Yes but the image must interact with the text
In what way? It's easier to receive help if you fully describe the context of your situation.

nikos101
07-29-2008, 09:36 AM
it must displace text next to it in the textarea. Like how it works in html and css

Ricky158
07-29-2008, 03:37 PM
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=textcontrols_060_10.html#437591

You can use htmlText's <img> tag, which will displace the text around it.

nikos101
07-29-2008, 04:02 PM
Yes I know but I want to apply style to the img to float it as in the OP