Thread: SVG question
View Single Post
Old 09-04-2012, 02:16 PM   #1
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
SVG question

I have a book with the front cover as an svg format. I have two issues with it. 1. it wont validate cause of this and two I have never used one before. I was wanting to know what are others take on it is?? It appears to allow the image to be stretched for the whole page. When I add an img tag to it I still have padding around the image. Suggestions??

CODE:
Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 488 751" preserveAspectRatio="none">
                <image width="488px" height="751px" xlink:href="cover.jpeg"/>
            </svg>
So far from what I can research is the preserveAspectRatio is incorrect.
curiousgeorge is offline   Reply With Quote