David Hucklesby composed on 2014-11-06 08:42 (UTC-0800):

> It’s not unlikely I am wet behind the ears, but I thought max-width simply
> prevented the image from expanding to its natural size in smaller containers.
> AFAIK the image will not stretch.

It may depend on how astutely it's used. I can see the following in the
context of much more complex CSS & HTML causing some head scratching:

#imghldr {
        max-width: 100%;
        width: 40rem;
        background-color: #CBB;
        padding: 1rem;
        border: .5rem solid #BBC;}
#myimage {
        width: 48rem;
        background-color: #BCB;
        padding: .5rem;}

<body>
<div id="imghldr">
<img id="myimage"
src="http://fm.no-ip.com/SS/Suse/YaST/131/yast2-131-softpatterns-1200.png";>
</div>
</body>

http://fm.no-ip.com/Auth/Tmp/tstimg.html
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to