View Single Post
Old 05-26-2014, 03:10 PM   #24
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
I attached screenshots to show you how it looks on my monitor, the aspect ratio is preserved, centering the image is easy via CSS rules.

What happens if you remove the width? (part in red)
Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMaxYMid" version="1.1" viewBox="0 0 720 960" width="100%"  xmlns:xlink="http://www.w3.org/1999/xlink">
	<image height="100%" width="100%" xlink:href="../Images/cover.jpg"></image>
</svg>
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	322
Size:	122.2 KB
ID:	123388   Click image for larger version

Name:	Capture2.PNG
Views:	318
Size:	212.7 KB
ID:	123389  
odedta is offline   Reply With Quote