Skip to main content
Codo_UOC
Participant
November 1, 2018
Answered

How to center my objects within the artboard without losing their relative positions?

  • November 1, 2018
  • 3 replies
  • 15155 views

Hey, friends,

say you have your design, composed by some objects, nicely disposed in their layers. They have their relative positions to one another and they look really good, but hey, the design is a bit in the upper side of the artboard. Let's center it! I select all the objects, select "Align to artboard" and click on "Center vertically". Result: all the objects pile up in the center of the artboard like they have no mother whatsoever (see picture).

In Photoshop, I'd link the layers to achieve this, but how can I solve this in Illustrator?

If you're gonna say: "Group them together before", I already tried, and it seemed to work... But when I checked the if the centering was right, it wasn't, I don't know why; I had to calculate it (with the calculator) and move all manually. Anyway, I don't really like the grouping solution, cause I don't want to treat all my objects as a group, so then I have to ungroup everything again and leave it as it was before. Help would be appreciated. Thank you sooo much.


    Correct answer Myra Ferguson

    If grouping isn't working, how about converting the objects into a symbol (F8) then centering that?

    3 replies

    Myra Ferguson
    Community Expert
    Myra FergusonCommunity ExpertCorrect answer
    Community Expert
    November 4, 2018

    If grouping isn't working, how about converting the objects into a symbol (F8) then centering that?

    Codo_UOC
    Codo_UOCAuthor
    Participant
    November 7, 2018

    This was the only way I could get to center everything as I wanted! Sweeet! Thanks, Myra.

    jane-e
    Community Expert
    Community Expert
    November 4, 2018

    Here’s what I do:

    1. Select all on the artboard
    2. Cmd + X to Cut
    3. Cmd + 0 to center the artboard on the screen
    4. Cmd + V to Paste
    5. Deselect

    Notes:

    • Substitute Ctrl for Cmd if you are on Windows
    • Paste always pastes to the center of the screen. When the artboard is in the center of the screen (there are multiple ways to do this), then Paste will paste to the center of the artboard.
    Jacob Bugge
    Community Expert
    Community Expert
    November 4, 2018

    A very nice and easy way, Jane.

    jane-e
    Community Expert
    Community Expert
    November 4, 2018

    Thank you, Jacob!

    Jacob Bugge
    Community Expert
    Community Expert
    November 2, 2018

    codo uoc,

    But when I checked the if the centering was right, it wasn't, I don't know why;

    What happens if you create add rectangle a bit larger than the Group, then align to that?

    Alignment is fundamentally about centre (or edge) of Bounding Box, and it may often look and therefore be wrong, especially for shapes/collections that are irregular/far from rectangle/circle; you can see it with a triangle.

    You may use such a rectangle and align to that, then adjust the Group within it so it looks/is right, then include the rectangle in the Group after setting its stroke and fill to None, then align/centre to Artboard.

    Concerning further work, you may either use the Direct Selection Tool (many use that most of the time in any case) with ClickDragging or Alt/OptionClick, or you can Ungroup (if you need to align/centre again, you can go through the above grouping/internal alignment again).

    Codo_UOC
    Codo_UOCAuthor
    Participant
    November 4, 2018

    https://forums.adobe.com/people/Jacob+Bugge  wrote

    You may use such a rectangle and align to that

    Jacob Bugge​, can you elaborate? I don't think I get the idea. I made a slightly larger square as you said, aligned the other objects to it and >boom<, again they lose their relative positions to each other.

    Jacob Bugge
    Community Expert
    Community Expert
    November 4, 2018

    Codo,

    The concept is to use the Grouping as a temporary measure to keep their mutual distances, then use a (relatively tight) stroke/nofill rectangle/square as a temporary frame to get the right visual appearance of their being centred, then make tha all inclusive Group and Align everything to the Artboard.

    When you are satisfied, you can make the rectangle/square invisible by removing its stroke, and after that you can work with each object by itself by Alt/OptionDirect Selecting it, or you can Ungroup (and delete the rectangle/square, if you must) and reGroup later if needed for a new alignment.