Is there a way to apply a default style to a textfield via css without having to refer to a body or span tag ?

I now use this additive trick to apply a style to txt content without further html or body tags:

tf.styleSheet = Stylesheets.css_center_11pt;
tf.htmlText = '<body>'+txt+'</body>';

How can I circumvent the <body>'s applied to the txt-var ?


FYI the Stylesheets getter function looks like this

       public static function get css_singlebig_ticker():StyleSheet
       {
           var myCSS:StyleSheet = new StyleSheet();
myCSS.setStyle("body", {fontFamily:'trebuchet', fontSize:'11', color:'#000000'} );
               myCSS.setStyle("a:link", {fontSize:'11',color:'#FF0000'});
       }

thanks,

Latcho
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to