View Single Post
Old 11-04-2013, 08:42 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,862
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Katsunami View Post
You can do it like this:

Code:
<body >
<div style="width: 100%;">  
    <img alt="Image" src="../Images/map.jpeg" />
</div>
</body>
Also, I remember that if you know the width and height of an image beforehand, then adding them to the image is (maybe... was?) good practice, as it would make it faster for a browser to lay out a page.

Don't quote me on this; I've not done serious front-end web development for some years now.
Don't use width; use height. Most maps are longer then wider and if you use a width of 100%, it could very easily be partially off-screen, Use height and if it has to be rotated, so be it.
JSWolf is offline   Reply With Quote