Center an image

The best way to make sure that an image is centered in the PDF, EPUB, and Kindle EPUB is to put the image inside of a BOX Figure wrapper, and then adjust the design settings as described below.

If you only want to adjust the layout for a specific image, then you’ll need to use the Limit These Changes menu. That means that first, you need to create a “magic clickable spot” to select your BOX Figure wrapper:

  1. Click the image to select it.

  2. In the Limit These Changes menu, choose “Only this Image Holder”.

  1. Scroll down to the Margins & Spacing section, and in the left margin box, add some non-miniscule amount of margin (for example, 20pt).

  2. Click Run Layout to see the change take effect.

You’ll remove this margin at the end of these steps, but you’ll need it for the next step: adjusting the design settings for BOX Figure wrapper.

For the BOX Figure:

  1. Click in the new extra space that should now appear to the left of your image (this is the extra margin that you added, that you’ll remove at the end). BOX Figure should appear selected in the Sections & Text dropdown menu.

  2. In the Limit These Changes menu, choose “Only this BOX Figure” (or whatever limitation you want to apply).

  1. Open the Font settings and set Text Indent to 0.

  2. For both the Text Align and Text Align Last settings, choose "center".

Now for the actual image:

  1. Click the image itself to select it.

  2. Again, in the Limit These Changes menu, choose "only this Image Holder."

  3. In the Margins & Spacing settings, set both the left and right margins to 0 (removing the extra margin that you added previously).

  4. Scroll down to the Dimensions settings and set Display to "inline-block".

  1. Click Run Layout—you should see all your changes take effect, and the image should now be centered.

  2. Finally, click Save Design.

Resize an image in the design preview
Grayscale images in the PDF
Getting Started
File Management, Uploads, and Downloads
Working with Book Text
Validation and Preflight
Groups and Billing
How Do I…