0

I guess this was asked earlier here Align (Center) based on only one item of a multi-item group? - but I couldn't really see a solution; so I'll try again:

Consider this situation - the reddish objects are part of a group:

inkscape-objects

I would like to align the selected red rectangle (the child in the group) left with the grey rectangle - and move the enclosing group correspondingly.

Of course, in the above situation, I can do Ctrl+Shift+LeftClick of the gray rectangle, and click on Left Align - but that will just move the red rectangle child, and will leave the other group members in place.

Any way to do this easily in Inkscape?

0
1

There's no way to do that with the align tools.

A workaround is to use snapping. Objects within a group will still snap. Enable Snap to Cusp Nodes, or if you want to align centre, there's a Snap Midpoints option in the Snap controls bar. Then you can use Ctrl as you click and drag to constrain the position.

Example

enter image description here

1
  • Thanks - went with this answer because it's explicit about "no way to do that with the align tools", and "Objects within a group will still snap"
    – sdbbs
    Apr 28 at 16:11
1

Drag a vertical guide from the ruler to the left edge of the grey shape. It should snap if you have the point snappings on:

enter image description here

Select the group. Hold Ctrl to limit the motion to horizontal. Move the group until the pink rectangle snaps to the guide:

enter image description here

1
  • Thanks - using a ruler/guide in this context is a great tip.
    – sdbbs
    Apr 28 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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