Log in

View Full Version : Style/CSS question


Scandal
12-20-2010, 05:09 PM
In the following image you can see a postbit legacy.
How could I add this right intermittent border to the postbit legacy? (it is only an image)
The colour is #CC3333

Thanks!

BirdOPrey5
12-20-2010, 07:30 PM
It's probably a a background image... it would help if we had the css for the postbit to be sure.

Scandal
12-20-2010, 07:43 PM
where could I find the postbit's css?:o
If we suppose that the background image is the "bg.gif", what I must add to the css to make this result? (and where on the admincp is the postbit's css? )


sorry for my bad english

BirdOPrey5
12-20-2010, 08:07 PM
Honestly I wouldn't think that is CSS so much as in inline style... In the default vBulletin postbit_legacy template style there is a line:


<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">


That is what controls that box in the postbit that you posted the picture of... the background image was probably added by altering this line. Find the name of the image then find the line that controls the main message area of the postbit:


<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">


Edit this line to add the background image to it, something like:


<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; background-image:url(images/misc/bg.gif)">