--- In [email protected], "jordangcsnt" <[EMAIL PROTECTED]> wrote: > > Hi I have been searching information about viewbox and other > attributes like preserveAspectRation, but Which are the elements that > I need in order that a svg element resizable in agreement to the size > of the canvas or of the element embed if I have something like this > > <embed src='prueba.svg' width='300' height='400' type='image/svg+xml' > pluginspage='http://www.adobe.com/svg/viewer/install/' /> > > > <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> > <svg xmlns:svg="http://www.w3.org/2000/svg" > xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink" id="root" width="100%" > height="100%" onload="Init(evt)"> > <line x1="403" y1="83" x2="403" y2="127" opacity="none" fill="none" > stroke="#" stroke-width="1" /> > <rect x="183" y="161" width="102" height="46" opacity="none" > fill="white" stroke="#" stroke-width="1" /> > <line x1="241" y1="127" x2="567" y2="127" opacity="none" fill="none" > stroke="#" stroke-width="1" /> > </svg> > > I hope someone can explain me how viewbox, and preserveAspectRatio, thanks >
As a start use viewBox="0 0 567 207". These are the dimensions of your artwork. For preserveAspectRatio, section 7.8 of the specification is very clear. Experiment and see what happens. opacity="none" doesn't exist, you can only use values 0.0 to 1.0. Check the many good examples to get ideas. ----- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/

