Page 1 of 1

Cut-off images - suggestion

Posted: Fri Apr 22, 2011 11:29 pm
by Chazz Layne
In the Soft Green theme, if an image in a post is wider than the post area (which is considerably smaller than the browser window) it gets cut off. This often makes the forums very hard to read on common monitor resolutions (anything under 1600x). If memory serves, there's a similar problem on the other theme as well. The following code would be a simple fix for this:

.postbody img {max-width: 100%;}

Added to the style sheets for each theme, that would make images posted reduce to the available space, instead of cropping. It would only affect images bigger than the post area, small ones would be left untouched.

Re: Cut-off images - suggestion

Posted: Mon May 02, 2011 8:03 am
by OLLIE
Chazz Layne wrote:In the Soft Green theme, if an image in a post is wider than the post area (which is considerably smaller than the browser window) it gets cut off. This often makes the forums very hard to read on common monitor resolutions (anything under 1600x). If memory serves, there's a similar problem on the other theme as well. The following code would be a simple fix for this:

.postbody img {max-width: 100%;}

Added to the style sheets for each theme, that would make images posted reduce to the available space, instead of cropping. It would only affect images bigger than the post area, small ones would be left untouched.
Thanks Chazz. We will look into this.