Log in

View Full Version : What stylevar changes the post background?


CouponWCents
09-04-2011, 03:51 PM
How do we change the color of the background of a post?

setishock
09-04-2011, 09:52 PM
Add this to your additional.css>

.postbit .postbody {
clear: both;
color: {vb:stylevar postbit_color};
background: Your color goes here;
}

You can make the background an image if you like by making the background statement look like this (somewhat...) >

background: url(path/to/your/image);

Mark.B
09-04-2011, 10:08 PM
Can't you just change the value in the stylevar postbit_background?

setishock
09-07-2011, 08:15 PM
That stylevar is dead. You have to edit the css.
I sure wish they would fix all that.

Mark.B
09-07-2011, 08:19 PM
That stylevar is dead. You have to edit the css.
I sure wish they would fix all that.
Is it? I'm using it. 4.1.3.
Did it die after that? I hope not. I shall just put it back.

There is postbit_background and postbit_userinfo_background, the second one does the bit where the avatar is.

*edit - this is in the legacy postbit, did it perhaps die in the other postbit?

setishock
09-07-2011, 08:23 PM
I'm running 4.1.2 and it's been dead since 4.0.8. I use postbit and it has no effect.

Mark.B
09-07-2011, 08:57 PM
Seems to work in postbit legacy only then.

That's a bit stupid.

I guess you could just add it to the postbit template in some way.

Checked it - the stylevar itself definitely works, it just isn't present within the postbit template, only postbit_legacy.

So it can just be added as a background to the relevant template code. Something like
style="background: {vb:stylevar postbit_background};"
That will definitely work. As will postbit_userinfo_background, which is usually slightly darker (a bit like alt1 and alt2 on vB3).