Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Wouldn't replacing the simple width: with max-width: 100%; do the trick? This is the CSS for image handling in a number of "responsive" website themes. That constrains the image to the size of the container, whatever size that may be.

For example (and for the moment), try resizing this page and compare to the size of the original image.

I'm not sufficiently well-versed in these things to know whether some value for overflow needs to be invoked as well, but there are plenty of experts around! :)