vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to set two small font CSS classes? (https://vborg.vbsupport.ru/showthread.php?t=106556)

silurius 01-28-2006 05:41 PM

How to set two small font CSS classes?
 
My "small font" class is breaking either the postbit (user title, last online, etc.) or text in the page body, because I have a near-white background in the former and a black background in the latter. In other words, setting small fonts as black will render text as invisible on the black background, and setting it as white will do the same in the postbit.

Is there a way in Main CSS to set a conditional for where the small text is showing up, or is there a way to set two small font classes? If yes to either, anyone have details on how?

Reeve of shinra 01-28-2006 08:43 PM

You need to edit the class name of one or the other and add it manually in your extended class definitions in the css manager. Just do a view source and copy/edit the original class.

silurius 01-29-2006 01:38 AM

Yeah, I figured it out with some trial and error in Additional CSS Definitions. Trouble is I nailed the color problem and broke the size.

Code:

/* **** Second Small Font CSS Def., added 1/28/2006

.smallfont2
{
style="color: White;
font-size: 10pt;"
}

(Then replaced "smallfont" with "smallfont2" in the relevant templates.)

At least it's visible.


All times are GMT. The time now is 11:50 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.00918 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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