When aligning 2 objects using the align panel, the object I
select second is the one that is moved and the object selected
first does not move.
This however is not the case when selecting an object and a
slice. I need my slice to be centered around an object so when I
export the image and center it in a div it lines up correctly. Is
there a way of doing this?
Slices do not always behave like objects you have drawn on
the page. One way to work around this is to delete the slice you
already have, draw a rectangle around the object you want to have
centered with the slice, then select the object and the rectangle
and center align then using the align panel. Once the two objects
are aligned, select the rectangle and right-click, then choose
"Insert Rectangular Slice" - this will draw a slice following the
outline of the rectangle, and the slice will be centered with the
other object just as you want. Now all you need to do is select the
rectangle you drew for the alignment and delete it - now all you
have left is the slice and the centered object within the slice.