Doug, thanks for advice below - it seems from my testing that if I 
want to position a polyline/path or other element that does not 
allow % units, then I can use another nested svg wrapper.

Simon


>You can't position elements relative to one
> another, but you can relatively position (most) elements within an 
SVG element.
> 
> For example:
> <svg xmlns='http://www.w3.org/2000/svg'
> xmlns:xlink='http://www.w3.org/1999/xlink'>
>    <svg x='50' y='50' width='200' height='300'>
>       <rect x='0' y='0' width='100%' height='100%' fill='none' 
stroke='gray'
> stroke-dasharray='2 5'>
>          <desc>rectangle illustrating the bounds of an inner 
SVG</desc>
>       </rect>
>       <rect x='0' y='0' width='10' height='10' fill='blue'>
>          <desc>rectangle positioned relatively with numeric values 
within
> the viewbox of an inner SVG</desc>
>       </rect>
>       <circle cx='50%' cy='33%' r='20' fill='orange'>
>          <desc>circle positioned relatively with percentage values 
within
> the viewbox of an inner SVG</desc>
>       </circle>
>    </svg>
> </svg>
> 
> Note that this does *not* work with paths or polygons, which 
cannot use
> percentages as values.
> 
> Regards-
> Doug
> 
> doug . schepers  @ vectoreal.com
> www.vectoreal.com ...for scalable solutions.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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