Quote:
Originally Posted by Notjohn
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 */