resizing matter

janko
05-11-2004, 05:05 AM
Pelase help me, i'm goin crazy with a resizing problem.
I edited an svg file, whose header is as follow:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet href="stilemappa.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<svg xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" id="svg602" sodipodi:version="0.34" width="210mm" height="297mm" sodipodi:docname="E:prova.svg" viewBox="0 0 0 0">



HOW CAN I RESIZE IT TO FIT IT TO A WEBPAGE. I ALREADY TRIED TO CHANGE WIDHT AND HEIGHT OF DIFFERENT SOLUTION: FRAME, IFRAME, EMBED, THE SVG ITSELF.

I'M QUITE HOPELESS..

does anyone KNOW THE SOLUTION? THANK YoU IN ADVANCE. bye.

Anonymous
05-11-2004, 05:45 AM
viewBox="0 0 0 0" seem strange, with this values you must get no drawing ....

Do you try
width="100%" height="100%" viewBox="0 0 210 297">
This suppose that your coordinates are in mm ... from 0,0 to 210,297 ...

If you want that your svg fill all screen - but it will be distorted - you can add
preserveAspectRatio = "none"

If you embed svg in html, for embedded give same values for width and height.


Michel

janko
05-11-2004, 07:20 AM
It works!!

Fixed!


.. it was probably the only solution I hadn't tried!!!

Thank you

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum