View Single Post
Old 05-04-2017, 02:32 PM   #19
Trane
Groupie
Trane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensions
 
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
Quote:
Originally Posted by Turtle91 View Post
No worries, it's happened to all of us!

Setting the width of the image to 100% and the max-width to the pixel size of the image simply means that it will scale (completely fill) to the size of the parent element (the <div> in this case) but it won't get any larger than the actual image...ie. it won't get over stretched to the point it looks blurry/ugly.

this is not a concern if you have super hi-res images (larger than current displays), but it can be an issue if you are working with small originals.
Thanks so much Turtle. You explained that beautifully.
Trane is offline   Reply With Quote