View Single Post
Old 04-05-2013, 03:04 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,360
Karma: 20171571
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
Try this in your css:
img {
max-width:100%;
max-height:100%;
width:100%
}

in the html:
<div><img alt="" src="..." /></div>

That will make ALL your images fill the width to the max extent possible while maintaining the correct aspect ratio.

If you have specific images that you want to behave differently, you can give them a specific class.
e.g.:
img.half {width:50%}
<div><img class="half" alt="" src="..." /></div>

Cheers!
Turtle91 is offline   Reply With Quote