Aligning vertical centers:

enter image description here

Aligning horizontal centers:

enter image description here

How to align the boxes so that the space between them would be equal?

enter image description here

  • Because you only have one gap between rows of boxes, this is impossible without changing either the overall length or the overall height. You don't have enough spaces to distribute. Feb 10, 2014 at 8:32
  • Do you mean, you want the vertical gap to be the same as the horizontal gap? Since they're squares, I'd rotate a pair then align to that. Feb 10, 2014 at 10:59
  • Semi-related, GuideGuide might help. You can establish your spacing in guides, then snap objects to that.
    – John
    Feb 10, 2014 at 17:23

2 Answers 2


Now while that's an okay answer, I was - of course - not thinking. The better way to do this is to select all the objects in the Row or Column, click a second time on your first item in the row - to make it your Key Object (it'll then have a 'thick' selected blue border and everything will align to this one). Then in your Align Palette type in what the gap between the objects should be. For e.g. 2 mm This way you don't need to do any maths.

enter image description here

(That should help for your question if the boxes aren't equal sizes.)

  • I don't see distribute spacing (using cs4) Feb 10, 2014 at 12:22
  • Hmmm, can't remember if it was in CS4 but should be. In your Align Palette click the little pull down menu in the top right corner and click on Show Options.
    – Yokel
    Feb 10, 2014 at 12:37
  • There is no align palette but property bar from which I can align Feb 11, 2014 at 4:55
  • Yeah, the 'Distribute Spacing' doesn't show up in the property bar. Your 'Align Palette' is under 'Window > Align' or Shift + F7
    – Yokel
    Feb 11, 2014 at 9:02
  • No. I mean Align Palette isn't there in cs4. Feb 11, 2014 at 9:13

You'll have to do a little maths. There's no way to say align objects vertically based on how they're horizontally aligned. If, for e.g., your boxes are 10mm and the gap 2mm, and the first box starts at 0x,0y then the second box starts at 12, the second at 24 (3rd at 36, etc.). Just calculate where the last box sits (whether you have just 3 or 300), position it there by changing it's x and y coordinates , select all the boxes in the row/column and then align to centres. Then do the same vertically.

  • That's a great idea. But what if the size of boxes are not equal? Feb 10, 2014 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.