The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: |
#2
|
||||
|
||||
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; } 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> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|