# Css.setStyle issue

**URL:** <https://forum.kirupa.com/t/css-setstyle-issue/313139>\
**Category:** Uncategorized\
**Created:** [August 21, 2010, 11:20am UTC](https://forum.kirupa.com/t/css-setstyle-issue/313139 "2010-08-21T11:20:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![izzie](https://avatars.discourse-cdn.com/v4/letter/i/4491bb/32.png) [@izzie](https://forum.kirupa.com/u/izzie)\
**Post date:** [August 21, 2010, 11:20am UTC](https://forum.kirupa.com/t/css-setstyle-issue/313139/1 "2010-08-21T11:20:03Z")

</div>

Hi, I have my text in an xml file, using html text/CDATA, and in my flash file I have this code:

```auto

function LoadXML(e:Event):void {
        xmlData = new XML(e.target.data);
        mytxt.htmlText = xmlData.myXMLText.text().split("\r").join("");
        var css = new StyleSheet();
            css.setStyle("a:link", {color:"#CCCCCC"});
            css.setStyle("a:hover", {color:"#999999"}); 
            css.setStyle("h1", {fontSize:"23", color:"#000000"});
        mytxt.styleSheet = css;
        trace(xmlData);

```

The links are working fine.  
But when I try to make sentences within a \<h1\> tag in xml, nothing happens.  
What do I do wrong??
