5 Mar
2004
5 Mar
'04
12:37 a.m.
I added a few lines of code to add a <src viewBox=""> attribute. Since we have no viewBox editor yet, I just made the viewBox equal to "0 0 width height" where the width and height are the page sizes x 1.25.
So, if you want to put an SVG drawing on a web page, do the following:
1. Set the page size to the size in points that the image rectangle will be on the web page.
2. Resize and move your drawing to fit into the page outline rectangle.
3. You might want to make a background rect to slightly overlap the page outline, to make sure that the edge of the drawing area does not appear on the web page.
4. Save. Paste into an XHTML document, and enjoy!
Bob