MyBB Community Forums

Full Version: CodeBlock max-width
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to make codeblock not to go beyond postbit post width?

I have added max-width: 99%; to .codeblock code but PHP code is not affected?????
<snip>

Real Kenny does the real magic below Big Grin
What should I do with this code please how it works???? How to add it to my theme?
Simply add this to your codeblock class in the global.css

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

Doesn't make any difference!

Hold on this one works!!!

word-break: break-all

@effone thanks baby for your help