MyBB Community Forums

Full Version: wrapping overflowing content if input from MyCode is too wide
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,
(this is more of an anwer than a question, but added it since it might be useful to others)

I've noticed that if the content from code /code or other inserted wrapped text is too wide, then it goes off of the width of the page, like this:

http://community.mybb.com/thread-87294.html


I think just adding an overflow and width property to the conatiner css will solve this:

.codeblock code {
    display: block;
    font-family: Monaco,Consolas,Courier,monospace;
    font-size: 13px;
    height: auto;
    max-height: 200px;
    max-width: 870px;
    overflow: auto;
}

- I think this is usualy there (in .codeblock code css) but it looks like the max-width is missing. I thought I would point it out, just in case its missing from the standard templates