Template:Large image/styles.css
Appearance
/**
* Class: __large_image_container
*
* These are the large images that fill the whole container when the container
* is smaller than the image's native size.
* This style ensures that the image does not exceed the container width.
*/
.__large_image_container {
/* center the images in this div if they are smaller than page width */
text-align: center;
/** If the container width is constrained, center the div within the parent */
margin: 0 auto;
}
.__large_image_container img {
/* thre image must not exceed the parent width */
max-width: 100%;
/* maintain aspect ratio when scaling */
height: auto;
}