you could use a viewBox attribute for that purpose:

<svg width="100%" height="100%" viewBox="0 0 4000 5000">
<!-- your svg content -->
</svg>

the first two values in the viewBox attribute define the upper left
corner of your current extent, the third and fourth value define the
width and height.

that way your content always scales to the available viewable area. Of
course the values in the viewBox may vary - you could use different
offset and width/height values.

Hope this helps,
Andreas

--- In [email protected], "Jatinder" <[EMAIL PROTECTED]> wrote:
>
> I have a svg document what is has very large dimensions....i.e my main 
>  root svg tag is width 4000px and height 5000px(approx..cant remember 
> the actual size)...in other words the whole thing has huge dimensions.
> 
> The problem is that i have to give a preview of the svg on my weppage
> ...in an <embed> tag which is around 300x400.
> 
> 
> When i display/put the svg directly to the tag its soo large that i 
> have to zoom out a number of times before i can seen anything.
> 
> Can you please tell me how to make my svg fit into the embed tag.
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to