Members Only

Aligning and Distributing Objects in InDesign

Explore the features of the Align panel in InDesign

This article appears in Issue 23 of InDesign Magazine.

You’ve seen it, or you’ve done it: Leaning into the monitor, staring intently at an InDesign layout zoomed in at 4000% while dragging an object an infinitesimal distance to line it up perfectly with other items in the layout. Stop! Don’t waste your time working by eye. Instead, you need the Align panel (choose Window > Object & Layout > Align). The Align panel is your headquarters for setting up relationships among the objects on your page, letting you line up or distribute (evenly space) selected objects. As we’ll see, many of these features also appear in the Control panel, ready for a quick click when you most need it. InDesign offers some features that can help even more by accelerating page layout. These features go beyond the alignment and distribution capabilities of many vector drawing programs.

Aligning and Distributing Objects: The Basics

The Align panel appears to have two sections, but there are really four: Align Objects, Distribute Objects, an unlabeled pop-up menu that applies to both the Align Objects and Distribute Objects buttons (Figure 1), and a fourth (often-hidden feature called Distribute Spacing, which I’ll explore later in this article.

Figure 1 (left): The Align panel.

Figure 1 (left): The Align panel.

By default, the pop-up menu is set to Align to Selection, which is how alignment always worked in previous versions of InDesign. That is, the Align Objects and Distribute Objects buttons are applied relative to the objects you’ve selected. For example, if you click Align Vertical Centers, all objects align to the vertical center of the combined selection area (Figure 2).
Figure 2: Aligning selected objects: Before (top) and after (bottom) clicking the Align Vertical Centers
<!--more-- srcset=


button.” width=”461″ height=”348″ /> Figure 2: Aligning selected objects: Before (top) and after (bottom) clicking the Align Vertical Centers button.

When you distribute objects, all objects are distributed between the outermost selected objects (Figure 3). I’ll cover the other options in that pop-up menu later.
Figure 3: Distributing selected objects: Before (top) and after (bottom) clicking the Distribute Horizontal Centers button.

Figure 3: Distributing selected objects: Before (top) and after (bottom) clicking the Distribute Horizontal Centers button.

If you can’t tell what each button in the panel does by its icon, just hold the pointer over a button to see that button’s name as a tool tip. If all you’re doing is simple alignment or distribution, you don’t even need to open the Align panel. When objects are selected, the align and distribute buttons also appear in the space-saving Control panel (Figure 4). If you select objects and don’t see the align and distribute buttons on the Control panel, either your monitor is not wide enough to display them (they appear toward the right side of the Control panel, so they don’t appear when your monitor is set to 1024 pixels wide), or you might have customized your Control panel layout to hide them.
Figure 4: The align and distribute buttons are also available in the Control panel.

Figure 4: The align and distribute buttons are also available in the Control panel.

Why So Many Distribute Objects Buttons?

Many users are confused by the various Distribute Objects buttons because sometimes, clicking any one of them appears to have the same result as clicking the others. This response occurs when all of your selected objects are the same size. If you select differently sized objects, you’ll see why InDesign provides choices here. The four objects in Figure 5 have different widths, so when I click Distribute Left Edges, Distribute Center Edges, and Distribute Right Edges, the results are different because the distances between the corresponding edges of each object are different.

Figure 5. The Distribute Object buttons produce different results when objects aren't the same size. From top to bottom, with the affected edge marked in red: Original positions, Distribute Left Edges, Distribute Horizontal Centers, and Distribute Right Edges.

Figure 5. The Distribute Object buttons produce different results when objects aren’t the same size. From top to bottom, with the affected edge marked in red: Original positions, Distribute Left Edges, Distribute Horizontal Centers, and Distribute Right Edges.

Aligning Objects to the Layout

Centering to the layout is easy and instant, thanks to the pop-up menu at the bottom of the Align panel (Figure 6). Let’s call it the “Align To” pop-up menu. By default, you’ll see that the Align To pop-up menu says Align to Selection. As I mentioned earlier, this means that InDesign aligns or distributes within a rectangle based on the outermost selected objects. In other words, if you click the Align Left Edges button, everything aligns to the left edge of the left-most object. To align objects to the page instead of aligning to other objects, choose Align to Page from the pop-up menu. You can also choose Align to Margins or Align to Spread.

Figure 6: New options in the Align panel pop-up menu simplify tasks such as centering an object on the layout.

Figure 6: New options in the Align panel pop-up menu simplify tasks such as centering an object on the layout.

When you choose Align to Margins, for example, InDesign treats the page margins almost like a selected object. That means objects will automatically align or distribute with the margins. The Align To pop-up menu also appears in a small pop-up menu that looks like a button in the Control panel.

A Perfect Layout in Two Steps

You can quickly organize objects on a layout by combining alignment and distribution with one of the options in the Align To pop-up menu. In Figure 7, l’ve dragged four image frames onto the page, but they’re a mess. I want them to be a nice, even row along the top margin. Fortunately, I can straighten this out in only two quick steps.

Figure 7: Four objects laid out in two steps. From top to bottom: original positions, Distribute Horizontal Centers within page margins, and Align Top Edges within page margins.

Figure 7: Four objects laid out in two steps. From top to bottom: original positions, Distribute Horizontal Centers within page margins, and Align Top Edges within page margins.

  1. In the Align panel, I choose Align to Margins from the pop-up menu, and then I click the Distribute Horizontal Centers button. The left-most object snaps to the left margin, the right-most object snaps to the right margin, and the other objects are then evenly spaced between those two, based on their center points.
  2. I click the Align Top Edges button. Because the Align panel pop-up menu is set to Align to Margins, the top edges of the objects align to the top margin of the page. And it’s done!

Spacing Objects Numerically

The space between distributed objects depends on their original positions, but sometimes you want to specify a precise amount of space between each object. You can do this with the Use Spacing option in the Distribute Objects section of the Align panel. When you turn on the Use Spacing checkbox and click a Distribute Objects button, the spacing between object edges is the value you enter for Use Spacing. The catch is that the spacing is measured between the same edge of each object, just as you saw in Figure 5. For example, if I turn on Use Spacing, enter 1 pica, and click Distribute Left Edges, this puts 1 pica between the left edges of each object (Figure 8). Unless my objects are smaller than 1 pica, these settings create an unwanted overlap. I’d have to enter a Use Spacing value that’s wider than an individual object. But when the objects are different widths, one value won’t produce even spacing between them. Am I out of luck?

Figure 8: The Use Spacing option for Distribute Objects lets you specify a precise distance between the same edge of all selected objects, which does not account for object widths. Small values result in overlaps.

Figure 8: The Use Spacing option for Distribute Objects lets you specify a precise distance between the same edge of all selected objects, which does not account for object widths. Small values result in overlaps.

Not at all. If my goal is to insert the same amount of space between each selected object, regardless of their widths, I need to reveal a hidden option in the Align panel. To see it, choose Show Options from the Align panel menu or click the double-headed-arrow expansion button in the Align panel tab (Figure 9). Instead of measuring the space between the same edges on each object, these hidden Distribute Spacing buttons measure the space between the facing edges of adjacent objects, guaranteeing consistent spacing for objects of any width or height. Turning on Use Spacing in this section lets you enter a precise distance between objects when you click a Distribute Spacing button. I often use the Use Spacing option to help keep layouts consistent with production specs. For instance, let’s say images must be separated from their captions by 6 points of space. I leave Use Spacing turned on and set to 0p6, and then all I have to do is select any image and its caption’s text frame and click the Distribute Vertical Space button. No thinking, dragging, or nudging required!

Aligning and Distributing from the Keyboard

The default shortcut for the Align panel is Shift-F7, but you can change this in the Keyboard Shortcut editor (choose Edit > Keyboard Shortcuts). If you frequently align or distribute objects, you may want direct keyboard access to Align panel features. To see and edit shortcuts to each Align Panel button, choose Object Editing from the Product Area pop-up menu in the Keyboard Shortcuts dialog box. For example, you could assign a shortcut to Align Left or Align Top. Alternately, the Quick Apply feature (press Command-Return, or CtrI-Enter on Windows) also lets you apply an alignment or distribution option. When objects are selected, typing horiz, verti, top, bott, left, or rig into Quick Apply can help list alignment options more quickly. (Assuming, that is, that you haven’t turned off Include Menu Commands in the Quick Apply flyout menu.)

Tips for Aligning and Distributing

If alignment and distribution aren’t working the way you want, see if the following objects and attributes might be factors: Locked objects. When a selection includes a object that’s locked (by using the Object > Lock Position command), all other selected objects align to it. When distributing objects, locked objects won’t move. This can be annoying, but you can take advantage of it. For example, if you want to align the right edges of objects to an object that isn’t the right-most selected object, just lock that object. Stroke weights. Thick strokes affect how objects align. The Align options always use the outside of an object’s stroke. This is not usually a problem unless you change an object’s stroke weight after you’ve aligned the object (Figure 10) or if you wanted to align to the path rather than their strokes. If you have lots of objects and expect to change their stroke weights, plan ahead. You might want to defer alignment until you finalize your stroke weights.

Figure 10: If you change a stroke weight of an object after you align it with others, it won't be aligned anymore.

Figure 10: If you change a stroke weight of an object after you align it with others, it won’t be aligned anymore.

Text. When text frames are part of a selection, the Align panel aligns or distributes them by the size of the text frame. If the text frame is much bigger than the text inside it, you may not get the alignment you expected. The specifications inside a text frame affect text position independently of Align panel options, so when you’ve used the Align panel correctly, but type is still not lined up the way you want, check settings such as the following (Figure 11):
Figure 11: Although the text frames of the photo captions are perfectly aligned, the captions themselves are not, because of inconsistent text frame options and formatting applied to the frames and the text inside them.

Figure 11: Although the text frames of the photo captions are perfectly aligned, the captions themselves are not, because of inconsistent text frame options and formatting applied to the frames and the text inside them.

  • The Vertical Justification and Inset options in the Object > Text Frame Options dialog box ›
  • The Align buttons, Align to Baseline Grid button, and indent options in the Paragraph panel )
  • For tables, the Cell Insets and Vertical Justification options in the Cell Options dialog box

Everybody… Get in Line

Once you unravel the secrets of the Align panel, you’ll find it to be an indispensable tool for fast, precise layout production.

Bookmark
Please login to bookmark Close

Not a member yet?

Get unlimited access to articles and member-only resources with a CreativePro membership.

Become a Member

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading comments...