OBJECTIVE I have an svg that I would like to scale with the browser window.
Parameters
a) It is to keep it's proportions (here a square)
b)to fit the bowser/device window to 80%
c)But to a maximum of 800px.
d) I'm not interested in javascript solutions
Code so far (although I've tried many combinations) SVG root element, the preserve aspect ratio has been left to default
svg viewBox="0 0 800 800"
and with regards to html & viewport HTML (embedding with object)
object type="image/svg+xml" id="svgobject" data="question0final.svg"
CSS, things tried, amongst others...
#svgobject{ position:absolute; top:0; left:0; height:100%; width:100%}
(From; How to scale SVG image to fill browser window?)
#svgobject{width:80%; max-width:800px; margin-right: auto; margin-left: auto;}
I've read a number of good resources, but I can't work out my errors
FYI here are some of the better links I've found on SVG positiioning
Do I use <img>, <object>, or <embed> for SVG files?
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web-SVG-Positioning.html
http://www.alistapart.com/articles/using-svg-for-flexible-scalable-and-fun-backgrounds-part-ii
http://www.w3.org/TR/SVG/coords.html
http://coding.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/
https://developer.mozilla.org/en/CSS/Scaling_of_SVG_backgrounds
(I find that SVGs as CSS backgound seem to pixelate)