O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Positioning

Illustrator, just like SVG, is a pixel-precise application. Although the bulk of the world may not care if a rectangle's top left corner is at (5.76389,45.8012), you can bet your inheritance that the designer does care if that is the original intent. As such, SVG allows designers to fuss with their code to their hearts' content.

However, there are some unexpected side effects of both Illustrator's and SVG's precision. What may look like perfect alignment between two abutting objects in Illustrator may actually be off by 0.00001 of a pixel. Although Illustrator's display engine may make your artwork appear correctly, you have no such guarantees with every SVG viewer. The 0.00001–pixel difference may be enough to cause a different application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required