MyBB Community Forums

Full Version: Text Overhang Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2014-06-22, 01:11 PM)Rymax99 Wrote: [ -> ]
(2014-06-22, 01:09 PM)iJoshAU Wrote: [ -> ]
(2014-06-22, 01:06 PM)Rymax99 Wrote: [ -> ]
(2014-06-22, 01:05 PM)iJoshAU Wrote: [ -> ]
(2014-06-22, 12:55 PM)Rymax99 Wrote: [ -> ]The overhang problem stems from large images. The images are breaking the layout, this is to be addressed in MyBB 1.8 if I'm correct.

For now, you can re-size images with either a plugin, or a CSS based solution.

A decent plugin for re-sizing images is: http://mods.mybb.com/view/fit-on-page

A CSS based solution would be something like this:
.post_body img {
width:100%;
height:auto;
}

Although this did fix the problem, its coming up with annoying information messages everywhere. and scaling down everything.

There might be a setting to disable it from showing the message, but if you just want a very simple solution to scale down images in posts so that they don't break the layout, I'd recommend the CSS based solution.

.post_body img {
width:100%;
height:auto;
}

and were would I place that?

ACP > Templates&Style tab > your theme > global.css
You can put the code anywhere, just make sure it's not in the middle of anything.

No need. After fiddling with the settings of the plugin you provided, I managed to get it working perfectly. thanks so much for your help!
Pages: 1 2