MyBB Community Forums

Full Version: Is this a bug?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can i prevent the bellow stuff from happening..

this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test 

thank you, cheers.
Set a width to the codeblock and make it overflow when it exceeds the width.
(2011-10-03, 10:12 PM)faviouz Wrote: [ -> ]Set a width to the codeblock and make it overflow when it exceeds the width.

Shouldn't that be added as default then? It makes sense if you think about it.
ahh that was fast and it works Big Grin
tyvm guys.
It should, but I'm not really sure if there's a way for it to work on all themes. On this forum, for example, you could change this:

.codeblock {
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px;
}

Into this:

.codeblock {
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px;
    width: 870px;
    overflow: auto;
}

And that would work perfectly since it's a fixed layout. However, it wouldn't work in differently sized fixed layouts. And especially not fluid layouts. It's kind of late so I might be missing something, but I don't think there's an alternative.