To make sure that the caption under an image isn't wider than the image itself and divides over more lines if necessary, a width is applied that equals the image width. That causes too much white space between the text and the image in case we have a portrait orientated image.

This can be easily solved by applying "max-width" instead of "width".

The max-width property is supported in all major browsers.
Note: The value "inherit" is supported in IE8 if a !DOCTYPE is specified. IE9 supports "inherit".
Note: IE6 and earlier versions do not support the max-width property.

Comments

lolandese’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new1.38 KB

Patch provided.

lolandese’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Typo