MyBB Community Forums

Full Version: Code box expansion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there, first time poster.

Is there a way (a mod or an option in the admin CP) to expand the Code box.

example

So that users don't have to scroll to read everything thats in there.

I use the code boxes to post results of races on my forum.

Example

And it just seems like its hard to read them if you have to scroll down to see everything.

I've tried using quote tags in the past but they remove all the spaces, which messes up the format of the results (which are exported from a game).
Look for this in your global css
.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 200px;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;

Remove the "max-height" attribute.
Edit : not seen above response Smile

your theme's global.css consists of below code
.codeblock code {
    display: block;
    font-family: Monaco,Consolas,Courier,monospace;
    font-size: 13px;
    height: auto;
    max-height: 200px;
    overflow: auto;
}

remove max-height: 200px; from above code & save template (do it thru admin panel --> themes ..)
Awesome thanks!