Advertisement


How to add transparent padding of fixed number of pixels to an element?


Question

I do not want initial image to change size, I simply want to add transparent padding around what I already have.

2012/08/20
1
2
8/20/2012 1:46:00 PM

Draw a rectangle the size you want. Set it to have no fill and no stroke. Align your art to that rectangle. (it may be easier to give it a stroke until things are aligned, then remove the stroke to save/export)

From there, you can either convert it to an artboard (Object > Artboards > Convert to Artboard) if you are using CS4+ or you can just leave the rectangle and exporting/Save for Web will see that as the artwork boundaries.

2012/08/20
2
8/20/2012 3:41:00 PM