# Positioning TextField around center x position? (Should be easy)

**URL:** <https://forum.kirupa.com/t/positioning-textfield-around-center-x-position-should-be-easy/310760>\
**Category:** flash\
**Created:** [June 18, 2010, 12:47pm UTC](https://forum.kirupa.com/t/positioning-textfield-around-center-x-position-should-be-easy/310760 "2010-06-18T12:47:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitShifter\_](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bitShifter\_](https://forum.kirupa.com/u/bitShifter_)\
**Post date:** [June 18, 2010, 12:47pm UTC](https://forum.kirupa.com/t/positioning-textfield-around-center-x-position-should-be-easy/310760/1 "2010-06-18T12:47:30Z")

</div>

Hi guys. This is probably a silly problem but when I create a textfield and use the centering property in the following way, I position it at x=0… but the middle of the text isn’t at zero; seemingly the left border of a large… area of some sort is at x=0.

```auto
var verdanaFont = new TextFormat();
            verdanaFont.font = 'Verdana';
            verdanaFont.size = 20;
            
                selections=new TextField();
                
                with (selections){
                    embedFonts = true;
                    defaultTextFormat = verdanaFont;
                    text='hello';
                    x=0; //or anything really
                    y=100;
                    autoSize = TextFieldAutoSize.CENTER;
                    
                }
                addChild(selections);

```

Is there something really silly I’m missing? :S
