The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
code box smaller?
Hi,
How do I change the size of the code box? When people add a bit of text it makes my board all stretched Code:
<-------------- Width --------------> |
#2
|
|||
|
|||
Edit the bbcode_code template. Look for the "alt2" element, change the width within the style attribute.
|
#3
|
||||
|
||||
Quote:
Do you mean from this: (Green Code) <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div> <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><div dir="ltr" style="text-align:left;">$code</div></pre> </div> To This: (Green Code) <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div> <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[50]; height:{$blockheight}px; overflow:auto"><div dir="ltr" style="text-align:left;">$code</div></pre> </div> I think its worked. Thank you for your reply |
#4
|
|||
|
|||
Sorry, I wasn't clear: you could do it directly in the template, yes. Or you could change the default value of "codeblockwidth", which you can set in the StyleManager. In AdminCP, click the Style Manager, then in the dropdown select "StyleVars". Change the value of "Code Block Width (pixels)".
That way you don't have to alter the template itself. I wanted you to look at the template so you could see which variable was being used to control the width. |
#5
|
||||
|
||||
Quote:
Thanks again for all your help |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|