# Implementing padding for thumbs

**URL:** <https://forum.kirupa.com/t/implementing-padding-for-thumbs/289916>\
**Category:** flash\
**Created:** [June 7, 2009, 12:42am UTC](https://forum.kirupa.com/t/implementing-padding-for-thumbs/289916 "2009-06-07T00:42:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luka66\_6](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@luka66\_6](https://forum.kirupa.com/u/luka66_6)\
**Post date:** [June 7, 2009, 12:42am UTC](https://forum.kirupa.com/t/implementing-padding-for-thumbs/289916/1 "2009-06-07T00:42:00Z")

</div>

Hi

i, am building an portfolio site and i have come a long way (still a beginner) but now i found an problem. After i load xml file for paths to portfolio assets i load actual jpg’s and/or swf’s. But i am stuck since i do not understand how to implement padding so thumbs will be spaced evenly… I understand that i should use something like

```auto
thumb.x += thumb.width + padding 

```

but than how to position first thumb? I will be really happy if someone can point me in the right direction.

tnx  
Luka
