Align or Distribute Relative to the Key Object

The Align palette has an array of but­tons to align and dis­trib­ute a group of objects. You can line up all their top edges, bot­tom edges, left or right edges; cen­ter them ver­ti­cal­ly or hor­i­zon­tal­ly, and; dis­trib­ute them rel­a­tive to one edge. The lim­i­ta­tion of these but­tons is that they align or dis­trib­ute rel­a­tive seem­ing­ly ran­dom­ly, mov­ing objects all over the place. It’s not real­ly ran­dom. Usually the last object you drew, the one high­est in the stack­ing order, is con­sid­ered the key object by Illustrator.

A key object is one that is used as the anchor, and all oth­er objects move rel­a­tive to it. For instance, when dis­trib­ut­ing spac­ing on three rec­tan­gles, two of them will move. Which two they are depends on the order in which you drew them. However, set­ting the cen­ter rec­tan­gle ast the key object, for exam­ple, makes only the rec­tan­gles on either side move; the cen­ter rec­tan­gle itself will not. This is very use­ful when you already have an object in its desired place, but need to make oth­er objects snap to attention.

How do you set the key object? Simple: Select all the objects for align­ment or dis­tri­b­u­tion as nor­mal. However, before click­ing a but­ton on the Align palette, click once on the object that will be the key. Don’t hold SHIFT, CMD/CTRL; just a nor­mal click on the object. Nothing will des­e­lect. Now, click the Align palette but­ton. The key object won’t move (unless the Align to Artboard option is also select­ed), and the oth­er objects will move rel­a­tive to the key object.