vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Info about VB CSS (https://vborg.vbsupport.ru/showthread.php?t=140530)

andreamarucci 02-26-2007 03:41 PM

Info about VB CSS
 
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

Quote:

.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

Quote:

Originally Posted by CyberAlien (Post 1191193)
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

Quote:

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

Originally Posted by Princeton (Post 1191199)
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.


All times are GMT. The time now is 07:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00949 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete