Illustrator alignment with styled element doesn’t work properly

I’m creating a template on Illustrator CS6 but I’m not able to align elements properly when one of them have a style.

In this case, I have a rectangle with a dropshadow effect and when I try to align the text in the middle of the box, it’s considering the whole height including the shadow.

The image below illustrate the problem, the text on the left (has the correct alignment position) was aligned without style and the text on the right was aligned with a dropshadow style.

It never happened to me before and I don’t know what could be the cause of this problem.

enter image description here


In Illustrator’s preferences there is an option to change an objects bounding box: Use Preview Bounds

enter image description here

With this selected the bounding box of an object (and therefor what is affected by alignment etc.) takes in to account any and all appearances that object has, including drop shadows or any other effects.

Turn this option off and your bounding box will only be made up of the objects paths, ignoring any strokes or effects. Your alignment should work as you want now.

If you like using the ‘Preview Bounds’ option you can just temporarily hide any effects that are affecting alignment in the appearance panel while you align your objects.

Source : Link , Question Author : CelsomTrindade , Answer Author : Cai

Leave a Comment