MyBB Community Forums
CodeBlock max-width - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: CodeBlock max-width (/thread-150278.html)



CodeBlock max-width - marcus123 - 2014-01-23

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?????


RE: CodeBlock max-width - effone - 2014-01-23

<snip>

Real Kenny does the real magic below Big Grin


RE: CodeBlock max-width - marcus123 - 2014-01-23

What should I do with this code please how it works???? How to add it to my theme?


RE: CodeBlock max-width - Real Kenny - 2014-01-23

Simply add this to your codeblock class in the global.css

word-break: break-word;



RE: CodeBlock max-width - marcus123 - 2014-01-23

.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