Quote from: Matt on December 09, 2014, 08:18:30 PM
I've added this to class .inner. It's no longer adding scroll bars to wide images on the desktop (I've only tested in Chrome so far) and prevents scrolling on iPhone iOS7. Does this fix the problem you had on your mobile?
I don't know if this is really the ideal choice though. Perhaps we want to use 'auto'?
Matt
You can just use "Visible" and all images will just expand outside the the content. But the best way to do this is add a seperate class ".inner img" and set "min-width: 100%" so images are always shown within the constraints of the divs width. Images that are bigger should be provided with a link/thumbnail anyway for convenience of page loads. So that way images will be down-sized to whatever the size of the content box is. So lets say mobile where limit is 1024 width, the image will be constrained with that smaller box. On widescreen, 1920 width, we'd get a much bigger, if not full resolution image.
.inner img { min-width: 100%; }
To make sure all images are restrained; inside quotes, and stuff is to facilitate all child classes
.inner * img, .inner img { min-width: 100%; }
.inner img.smiley { min-width: auto; }
This
shouldn't effect smilies I believe as they usually have a hard coded size, but just in case there is a reset.
We could use the not select as follows but that is only in modern browsers. Which is pretty much everyone but not definite.
.inner * img:not(.smiley), .inner img:not(.smiley) { min-width: 100%; }
I have a suite called "BFX View" i have made which gathers all images inside content postings that are shown below their natural size. If clicked it will fade in one of those "lightboxes" with the full size image in it to view. I could rewrite it for these forums? It literally is just a jQuery application which requires no HTML/CSS edits. Does it all itself. You just gotta add the HTML link to the script in the global header of the forums, like under where the CSS is loaded.
Btw this did fix my problem with content scrolling away on me while scrolling the page and writing posts xD