tbeanz
05-20-2008, 03:43 PM
Hello all, I'm having a bit of trouble with changing the colour of a text using CSS. Right now, I have this simple code that displays 4 lines of text...
<mx:Text width="347" id="htmlTest" x="10" y="299">
<mx:htmlText>
<![CDATA[
This is 14 point blue italic text.<br>
<b><font color="#000000" size="10">This text is 10 point black, italic, and bold.</font></b>
<span style="color: #ff0000; font-family:'garamond,times'">this should be red</span>
<font color = "#ff0000"> This is red.</font>
]]>
</mx:htmlText>
</mx:Text>
For some reason, the "span style" one does not get formatted at all (although the same line works perfectly in Dreamweaver). Does this have to do with CSS-Flex compatibility, or is there an error in my code?
Thanks for your help,
tbeanz
<mx:Text width="347" id="htmlTest" x="10" y="299">
<mx:htmlText>
<![CDATA[
This is 14 point blue italic text.<br>
<b><font color="#000000" size="10">This text is 10 point black, italic, and bold.</font></b>
<span style="color: #ff0000; font-family:'garamond,times'">this should be red</span>
<font color = "#ff0000"> This is red.</font>
]]>
</mx:htmlText>
</mx:Text>
For some reason, the "span style" one does not get formatted at all (although the same line works perfectly in Dreamweaver). Does this have to do with CSS-Flex compatibility, or is there an error in my code?
Thanks for your help,
tbeanz