0 Replies Latest reply on Feb 3, 2010 10:45 AM by jsd99

    Styling HTML in a Text component via css

    jsd99 Level 3

      I have a Text component that I create via ActionScript.  I use myText.styleName="blurb" to set its stylesheet property.  So far so good.  But the Text control contains HTML, and it might have, for example <a> tags in it.  I want to style those <a> tags via the stylesheet.  Specifically, I want to make the text underlined and a different color when the user hovers.  I am not allowed to set "a" or "a:hover" as selectors in the top level stylesheet for some reason.  How do I do this?