MyBB Community Forums

Full Version: Codes and Quotes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having trouble with my codes and quotes being scrollable. I've followed the tutorial found here, but none of it helped me. Please look at this topic on my forum to understand what I'm talking about:
http://www.forumsrule.com/showthread.php...6#pid13156

If somebody could, just tell me what classes the codes and quotes fall under in my CSS.
.codeblock and .quoteblock
How am I able to make the codes and quotes have a scrollbar?
Codelocks already have a scrollbar. If you take a look at its styling, you could do the same in quoteblocks.
The thing is, there doesn't seem to be any code or quote classes in the stylesheet, and I have no idea what to use to change the codes/quotes to scroll boxes. At the moment, they just seem to be in a fixed position without any design.
You seem to have deleted the classes. Add this to your global.css:

blockquote {
	border: 1px solid #ccc;
	margin: 0;
	background: #fff;
	padding: 4px;
}

blockquote cite {
	font-weight: bold;
	border-bottom: 1px solid #ccc;
	font-style: normal;
	display: block;
	margin: 4px 0;
}

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

.codeblock .title {
	border-bottom: 1px solid #ccc;
	font-weight: bold;
	margin: 4px 0;
}

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

blockquote cite span {
	float: right; 
	font-weight: normal;
}

blockquote cite span.highlight {
	float: none;
	font-weight: bold;
	padding-bottom: 0;
}
I added it, but it doesn't seem to be working. On this topic, it still shows just a plain, fixed code.
I refreshed the thread and it is styled.

Try hard-refreshing by pressing Ctrl+F5 or Shift+F5.
I cleared my cache, and it seems to work now. Thank you very much! I appreciate it. Smile
You're welcome! Wink