Search code examples
apache-flexflex3stylesheet

Flex: background-color for htmlText in TextArea?


Is it possible to assign a background color for a certain text part inside the TextArea? similar Like that

<div style="background-color:#FF0000">...</div>

Thanks in advance


Solution

  • Background color is not woring in htmlText of the TEXTAREA so you need to change the FontColor. I have faced that problem earlier and getting the same result and after googled it a lot i have got the result to change the FONT color instead of changing BACKGROUND Color. but you can bluff that just run the following code by creating new html page

    <html>
    <body>
    Hi My name is
    <table bgcolor="#777777">
    <tr><td>
    <font color="red" bgcolor="yellow"><h1>Sagar</h1></font>
    </td></tr>
    </table>
    </body>
    </html>
    

    and embed the htmlText of the TextArea with that code...

    Have a Nice Day....