StyleSheet problem

Hi,

I have the code below in a Flash movie, but the <small> tag breaks the line of text. Could you please give me any advice on this?

Thanks,
CH


var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.setStyle("bodyText", {fontFamily: 'Arial,Helvetica,sans-serif', fontSize: '13px'});
styles.setStyle("small", {fontFamily: 'Arial,Helvetica,sans-serif', fontSize: '9px'});
this.createTextField("caption_txt", 3, 0, 0, 400, 55);
this.caption_txt.html=true;
this.caption_txt.multiline=true;
this.caption_txt.selectable=false;
this.caption_txt.wordWrap=true;
this.caption_txt.autoSize=true;
this.caption_txt.styleSheet = styles;
this.caption_txt.htmlText="<bodyText>Civilians <small>are</small> increasingly becoming the victims of Mexican soldiers waging a bloody campaign against narcotics cartels, TIME.com reports. In one instance, troops shot dead two women and three children traveling to a funeral. It's a drug war that the U.S. Congress is looking at </bodyText>"

Don’t use the small tag…

jk. Do you mean a like break?

I need to create tags that will format parts of the text. I don’t know why it creates a line break. Do you have any advice on how to do this?

Try adding {fontFamily: ‘Arial,Helvetica,sans-serif’, fontSize: ‘9px’, display: ‘inline’}

That works great! Thanks.
One last thing: Is there any way to format letters so they appear superscript?

CH

No…you need to embed a superscript font

Check this link

Thanks,
CH