View Single Post
Old 11-19-2010, 09:12 AM   #16
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
Quote:
Originally Posted by Fabe View Post
This code does NOT work for resizing jpeg files:
<p><img alt="Cover_Name" src="../Images/Cover_Name.jpg" width="100%" height="100%" /></p>
The resizing taking place looks terrible.
Quote:
Originally Posted by Jellby View Post
A bit safer would be "max-width=100%", which keep the images proportion.
I keep seeing different approaches to this issue, all of which seem (to me) unnecessarily complex. But then, I don't claim to really know what I'm doing.

What I've done is simply:
<p><img alt="Cover_Name" src="../Images/Cover_Name.jpg" width="100%" /></p>
Which appears to me to work just fine. But, if it's really that simple, I think somebody else would have figured that out a long time ago. Thus, I assume there's some good reason why this is a bad (or at least sub-optimal) approach. Can someone please explain?
DTM is offline   Reply With Quote