View Single Post
Old 11-04-2013, 08:37 PM   #9
VydorScope
Wizard
VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.
 
VydorScope's Avatar
 
Posts: 3,418
Karma: 35207650
Join Date: Jun 2011
Device: iPad
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.
Hmm... yeah that is probably a better way to do it. Thanks.
VydorScope is offline   Reply With Quote