View Single Post
Old 07-23-2015, 10:39 AM   #8
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,310
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
Quote:
Originally Posted by Notjohn View Post
I put that instruction inline, so that I'm not stuck with it in every case.
I hadn't thought of that - I try and keep all styling in the CSS. I usually don't work with a large number of images, so having 4-5 lines in the CSS with different max-width has been fine, but if you have a lot of images that may make it easier.

e.g.
<div class="image"><img alt="" style="max-width:9999px" src="../Images/example.jpg" /></div>

and a single CSS line:
div.image {width:100%} /* plus any other styling */
Turtle91 is offline   Reply With Quote