vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Overriding the CSS in a Particular Table? (https://vborg.vbsupport.ru/showthread.php?t=101819)

Smartin 11-28-2005 10:57 PM

Overriding the CSS in a Particular Table?
 
I have added the Welcome Panel on my forum home page, and the text is too big for my liking. It is currently set at 10pt, and I'd like it set at 8pt. BUT if I change the <td>, <th>, <p>, <li> CSS to 8pt, then it changes the size of the subforum titles, too. I want them to stay at 10pt, but lower the Wlecome Panel text to 8pt. Can I do this with a code that I can slide into the forumhome_welcomepanel template?

www.bpgforums.com - v3.5.1

TIA! :squareeyed:

Reeve of shinra 11-28-2005 11:26 PM

There's probably a few ways to do this but the easiest way would be to edit the welcome template and add div tags around the phrases then specify the font attribute for that div in the custom css section of the css manager.

Matter of fact, here you go.

CSS:
HTML Code:

/* ***** styling for welcome headers ***** */
.welcomesize { font-size: 8pt; }

Template:
HTML Code:

<if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login'">

<if condition="$show['guest']">
        <!-- guest welcome message -->
        <br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
        <tr>
                <td class="alt1">
                <div class="welcomesize"><phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]" 3="$vboptions[bbtitle]">$vbphrase[first_visit_message]</phrase></div>
                </td>
        </tr>
        </thead>
        </table>
        <!-- / guest welcome message -->
<else />

<if condition="is_member_of($bbuserinfo, 3)">
        <!-- / unconfirmed user message -->
        <br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
        <tr>
                <td class="alt1">
                        <div class="welcomesize"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_unconfirmed]</phrase></div>
                </td>
        </tr>
        </thead>
        </table>
        <!-- / unconfirmed user message -->
<else />

<if condition="$bbuserinfo[posts]<1">
        <!-- never posted message -->
        <br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
        <tr>
                <td class="alt1">
                        <div class="welcomesize"><phrase 1="$bbuserinfo[username]" 2="$vboptions[bbtitle]">$vbphrase[welcome_neverposted]</phrase></div>
                </td>
        </tr>
        </thead>
        </table> 
        <!-- / never posted message -->
<else />

<if condition="$headerstime - 1209600 > $bbuserinfo[lastpost]">
        <!-- never posted message -->
        <br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
        <tr>
                <td class="alt1">
                        <div class="welcomesize"><phrase 1="$bbuserinfo[username]" 2="$vboptions[bbtitle]">$vbphrase[welcome_postmoreoften]</phrase></div>
                </td>
        </tr>
        </thead>
        </table>
        <!-- / never posted message -->
</if>
</if>
</if>
</if>
</if>



All times are GMT. The time now is 08:38 AM.

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.01819 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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