View Full Version : Overriding the CSS in a Particular Table?
Smartin
11-28-2005, 10:57 PM
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:
/* ***** styling for welcome headers ***** */
.welcomesize { font-size: 8pt; }
Template:
<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>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.