View Single Post
Old 07-07-2015, 01:35 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Your Height and Width settings are at 100%. If you want to take up less screen space you need to reduce those. However you are not going to get something that is exactly the number of pixels of your image.
Check out W3Schools SVG tutorial.

I'm not sure why you would need to use SVG though. I would simply insert the image using a div if you didn't want to ttake up the whole screen.

Code:
<div class="image1"><img alt="" src="../Images/example.jpg" /></div>

with CSS:
div.image1 {width:100%; max-width:755px} *add whatever styling you want
Turtle91 is offline   Reply With Quote