PDA

View Full Version : Info about VB CSS


andreamarucci
02-26-2007, 03:41 PM
I'm trying to develop a skin for VB but there isn't too much documentation about the CSS, apart in the VB docs on vbulletin.com.

I've a question for you. I would like to pud a specific background in the Quote box, the box that appear in a message when you quote another message. I've tried to change the value of

.alt2, .alt2Active
{
background: #ffffff;
color: #464A51;
border: 1px solid #FFFFFF;
}

and the background appear in the box but also in the legacy postbit (where you see the name of the person that has posted the message.

It's possible to style just this box? How can I do it?

Thanks

CyberAlien
02-26-2007, 03:50 PM
pre.alt2 { put style here }

Princeton
02-26-2007, 03:55 PM
create your own class and add it to the bbcode_quote template

andreamarucci
02-26-2007, 04:31 PM
pre.alt2 { put style here }

Do qyou mean that if I put this new class in the CSS, automatically all the quote box are styled according to this class? For example

.pre.alt2
{
background: #cccccc;
color: #464A51;
border: 1px solid #ffffff;
}

create your own class and add it to the bbcode_quote template

But that way do I have to modify also the template, isn't it? I would like to achieve this style without modify any template if possible...

Sorry but I'm not so good in CSS...

CyberAlien
02-26-2007, 05:07 PM
Nevermind, I looked in wrong template. That styling would work for "code" bbcode (but its "pre.alt2", not ".pre.alt2"), not "quote". There aren't any special tags in quote default template that could be used for styling, so you'll have to edit bbcode_quote template as Princeton suggested.