# Making a shape Wider when more Text is there

**URL:** <https://forum.kirupa.com/t/making-a-shape-wider-when-more-text-is-there/235239>\
**Category:** flash\
**Created:** [August 9, 2007, 2:59pm UTC](https://forum.kirupa.com/t/making-a-shape-wider-when-more-text-is-there/235239 "2007-08-09T14:59:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleutuna](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bleutuna](https://forum.kirupa.com/u/bleutuna)\
**Post date:** [August 9, 2007, 2:59pm UTC](https://forum.kirupa.com/t/making-a-shape-wider-when-more-text-is-there/235239/1 "2007-08-09T14:59:14Z")

</div>

This is probably something pretty easy to do, I just don’t know how you’d do it.

I’ve got a ‘tab’, and I want it to be wider/shorter based on how much text is in it.

The text is being generated dynamically, so i need the width of the shape, which will sit behind it, to change accordingly.

Anybody got an idea how this can be done?

Thanks!
