| * simonshutter wrote:
| >ie can you position elements using svg/viewbox or other 
| >element/attributes to flow elements inside an svg document?
| 
| No, you'd have to use scripting to achieve that.

Wait, that's not exactly true. 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 --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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