# textIndent property in StyleSheet class

**URL:** <https://forum.kirupa.com/t/textindent-property-in-stylesheet-class/308799>\
**Category:** flash\
**Created:** [April 30, 2010, 9:55am UTC](https://forum.kirupa.com/t/textindent-property-in-stylesheet-class/308799 "2010-04-30T09:55:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plumpnation](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/plumpnation/32/1929_2.png) [@plumpnation](https://forum.kirupa.com/u/plumpnation)\
**Post date:** [April 30, 2010, 9:55am UTC](https://forum.kirupa.com/t/textindent-property-in-stylesheet-class/308799/1 "2010-04-30T09:55:01Z")

</div>

```auto
import flash.text.StyleSheet;

var ss:StyleSheet = new StyleSheet();
ss.parseCSS("p{fontSize: 10; textIndent:50;}h1{fontSize:15;}");

styleMe.styleSheet = ss;
styleMe.htmlText = "<p>Title for my text</p> <p>This is my text with whom I am so proud and happy and this is my text which I am so proud and happy.</p>";

```

I just knocked up a very quick test for styling in a TextField using CSS, and as you can see from the result, the second paragraph is completely ignoring the textIndent value.

Anyone know why this might be. It’s super annoying. It doesn’t seem to make any difference if I use a h1 or a p for the title, the second paragraph still has a mind of it’s own when it comes to textIndent.
