PDA

View Full Version : bbcode Background color.


neocorteqz
07-06-2004, 08:01 AM
How do i change the backgound color of the bbcode boxes? Right now it's hard to read with the current color it's at.

Edit, I would like to do it without editing the Second Alternating Color.

Xenon
07-06-2004, 10:18 AM
just edit the bbcode_ templates and hardcode the color there, as we did on vb.org :)

neocorteqz
07-06-2004, 10:53 AM
just edit the bbcode_ templates and hardcode the color there, as we did on vb.org :)
I may have done it wrong, but where would I start to hardcode it? I replaced the 'alt2' in the template with a hex value. but it didn't change, i take it i have to replace the whole <pre class="alt2" > line?

And may i ask what you used for code? My HTML is kinda weak. :)

Xenon
07-06-2004, 11:25 AM
you cannot replace classes with hexvalues, you have to overwrite the style :)

<pre style="background: #188884;"> for example.

neocorteqz
07-06-2004, 04:10 PM
thank you sir.

Xenon
07-06-2004, 04:12 PM
you're welcome

neocorteqz
07-06-2004, 04:30 PM
Maybe I'm missing something.

this is the original template.


<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">$code</pre>
</div>


I have edited it, but keep getting this and several other variations. Maybe I'm missing something due to the lack of sleep in the past 24 hours.

Xenon
07-06-2004, 04:32 PM
hmm, lack of sleep i'd say, at least i cannot think of anything else ;)

you may want to search some of my posts, i think i posted vb.org's template somewhere :)