# TextFormat Margins for dynamic Textfield

**URL:** <https://forum.kirupa.com/t/textformat-margins-for-dynamic-textfield/252206>\
**Category:** flash\
**Created:** [February 17, 2008, 11:11pm UTC](https://forum.kirupa.com/t/textformat-margins-for-dynamic-textfield/252206 "2008-02-17T23:11:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yann](https://avatars.discourse-cdn.com/v4/letter/y/bc79bd/32.png) [@yann](https://forum.kirupa.com/u/yann)\
**Post date:** [February 17, 2008, 11:11pm UTC](https://forum.kirupa.com/t/textformat-margins-for-dynamic-textfield/252206/1 "2008-02-17T23:11:03Z")

</div>

I got a text field dynamically displaying titles from an XML file in a “callout” style popup. and I managed to add some left/right margin with:

var nameFormat:TextFormat = new TextFormat();  
nameFormat.leftMargin = 10;  
nameFormat.rightMargin = 10;

Is there anything equivalent or another easy way to add extra top/bottom margins? I can’t find anything in the doc…

Thanks!
