PDA

View Full Version : change dimensions of "code"


websiteking532
07-21-2007, 01:15 PM
how can i change dimensions of code

so tat it doesnt happen like the following

https://vborg.vbsupport.ru/external/2007/07/14.jpg

nexialys
07-21-2007, 01:19 PM
template bbcode_code

Yours Truly
07-21-2007, 01:21 PM
how can i change dimensions of code

so tat it doesnt happen like the following

http://upload.bz/files/mydnimhqnrwzlmj2mv1z.jpg
Stylevars --> Code Block Width (pixels)

Edit that value :)

websiteking532
07-21-2007, 01:43 PM
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
</div>

how can i adjust the dimensions such tat it varies based on the length of the post within the "code"

Kirk Y
07-21-2007, 04:02 PM
See here: https://vborg.vbsupport.ru/showthread.php?t=152886