Fluid Images

Auf A List Apart gibt es einen Auszug aus dem Buch Responsive Web Design der sich mit Fluid Images bechäftigt.

First discovered by designer Richard Rutter, this one rule immediately provides an incredibly handy constraint for every image in our document. Now, our img element will render at whatever size it wants, as long as it’s narrower than its containing element. But if it happens to be wider than its container, then the max-width: 100% directive forces the image’s width to match the width of its container.

Ich denke das Buch werde ich mir anschaffen, klingt spannend.

Possibly related posts (automatically generated)