MyBB Community Forums

Full Version: Allow images to break borders
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I recently migrated my SMF forum to MyBB and I and my users are largely very satisfied with the move (it was far easier than I expected it to be, the merge tool is very good!). As such I am using the most recent version of MyBB.

There is one aesthetic thing I would like help with though that I cannot figure out how to duplicate through the theme editing on MyBB.
My forum's premise involves posting a lot of very wide images.
Both this forum and the previous forum have a fixed forum width of ~1000 pixels, but sometimes the images are longer than that.

On my old forum, a very long image would simply break the borders of the post and continue on, leaving the text to wrap at 1000 pixels. See here:
http://picturewars.net/smf/index.php?topic=2471.0

This same topic on our new MyBB forums does not do this however, the long image causes the post to stretch outwards, so the text continues outwards as well.
This makes the text a lot more difficult to read as it is now a very very long single line instead of a paragraph.
See below:
http://picturewars.net/forum/showthread.php?tid=2362

I have tried inserting fixed width css in various places on the theme stylesheet but it didn't seem to help in any way. I've searched the forum a bit to see if anyone has similar issues too, but it seems most people want to shrink their images to fit on the page rather than just letting the images stay the right size.
This is undesirable for our forum's premise as the images are important to the post, but it is also desirable to have easily legible text underneath.
Can anyone help me with this?
The only way I can think of would be forcing the main <table> or at least its <td> to have constant width in postbit/postbit_classic templates. It can be done by adding table-layout: fixed; to that <table>'s CSS and width: xx%; word-wrap: break-word; to message <td>'s CSS.

However, I still think using fitting plugin would be better: http://mods.mybb.com/view/fit-on-page
It shrinks the image, which you may not like, but it can be always expanded by clicking on it/bar.