Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Adobe Illustrator CS6 to create small images (like icons) for my app so I need pixel precision.

How can I avoid X, Y, W and H properties to have decimals? Can I configure 0 decimals for this properties on my document?

If I use the textboxes with this properties it does right, it increases pixel by pixel, but when draggin with the mouse it uses up to 3 decimals.

share|improve this question
up vote 3 down vote accepted

Select the object and then tick the Align to Pixel Grid option on the Transform Panel.

This will force objects to snap to the nearest pixel. So, beware, paths will move and changes to match the pixel grid. And strokes are limited to nothing less than 1pt/px.

When creating a new document, you can also choose the option to Align New Objects to Pixel Grid in the New Document dialog window. You can also choose the Align New Objects to Pixel Grid item in the Transform Panel menu to make all newly created objects have the option set by default.

share|improve this answer
Thank you. Helped me so much. – Pablo Chávez Jun 14 '13 at 16:18

Very simple: just work with pixel preview on. To do that, go to (top menu) \View \ Pixel Preview.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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