# Cannot center align text?

**URL:** <https://forum.kirupa.com/t/cannot-center-align-text/189850>\
**Category:** Uncategorized\
**Created:** [June 6, 2006, 6:16pm UTC](https://forum.kirupa.com/t/cannot-center-align-text/189850 "2006-06-06T18:16:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bash](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bash](https://forum.kirupa.com/u/bash)\
**Post date:** [June 6, 2006, 6:16pm UTC](https://forum.kirupa.com/t/cannot-center-align-text/189850/1 "2006-06-06T18:16:44Z")

</div>

I am not able to centre justify text???

I type the text with some lines longer than others but when i select the centre justify button, nothing happens???

The text box is set to Static Text too!!!

Am i doing something wrong???

Is there anything else i can try???

I know it is something simple???

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [June 6, 2006, 10:02pm UTC](https://forum.kirupa.com/t/cannot-center-align-text/189850/2 "2006-06-06T22:02:29Z")

</div>

Not sure why that isn’t working in the authoring environment? Another option though is to use textFormat.

[AS]  
var nTF = new TextFormat;  
nTF.align = “center”;  
myTextField.setTextFormat(nTF);  
[/AS]
