# Modifying a TextField's Margin/Padding

**URL:** <https://forum.kirupa.com/t/modifying-a-textfields-margin-padding/280551>\
**Category:** flash\
**Created:** [January 28, 2009, 8:26pm UTC](https://forum.kirupa.com/t/modifying-a-textfields-margin-padding/280551 "2009-01-28T20:26:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lawrence1988](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Lawrence1988](https://forum.kirupa.com/u/Lawrence1988)\
**Post date:** [January 28, 2009, 8:26pm UTC](https://forum.kirupa.com/t/modifying-a-textfields-margin-padding/280551/1 "2009-01-28T20:26:23Z")

</div>

Hi Guys,

My first post, yay! Ok, here’s what’s been bugging me for a long time…

When dealing with TextFields, Flash always adds some sort of margin/padding around the outside of your TextField, so that if you set the X and Y of your TextField to 0, then your text would still sit about +4 pixels in.

If you create a TextField and set ‘border=true’, you will see what i mean - the border is drawn right on the edge of the TextField, but the actual text itself sits within a padding of about 4 pixels.

Is there any way at all to get the text of a TextField to sit hard-up against the border?

Thanks!
