On Sat, Nov 22, 2014 at 9:14 PM, Crest Christopher < crestchristop...@gmail.com> wrote:
> Percentage values scale the width of the viewport unlike pixel values. > > Tom / I assume when you say use max-width you mean; > > img { > max-width: 123px > } > > If so why do that, if you know the image size just give the container the > size of the image ? > > Christopher > Christopher, If you just give the image "max-width: 100%" it will only start "getting small" (thank you, Steve Martin) when its container forces it to. What do you mean by "scale the width of the viewport?" Percentage widths on containers have no affect on the width of the viewport, they scale proportionally to the viewport. Tim ______________________________________________________________________ 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/