vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   tcat padding problem (https://vborg.vbsupport.ru/showthread.php?t=159413)

Pandemix 10-03-2007 11:27 PM

tcat padding problem
 
I have added a tcat that uses a middle, right and left corner (all different images). I added the coding in the right templates and I have the three part tcat code working.

However, the gradient from the original tcat class still shows up behind it. See Screenshot 1 below:

http://sixpop.com/images/file/7235012.png

I cannot get rid of it properly.

What I did at first was set the padding on the "tcat" class in the Styles manager was: padding: 0;. It did shrink to what I want

http://sixpop.com/images/file/75521572.png

But this affects other pages as well using the tcat class:

http://sixpop.com/images/file/98297708.png

(tcat take from the forum view section)

How can I shrink the tcat on the index page without messing it up on my other pages?
----------------------------------

Three Part tcat Code CSS:

Code:

.tcat_main {
background: url(http://sixpop.com/images/file/77938217.gif) top left repeat-x;
height: 31px;
}

.tcat_left {
background: url(http://sixpop.com/images/file/78314222.gif) top left no-repeat;
height: 31px;
}

.tcat_right {
background: url(http://sixpop.com/images/file/61109970.gif) top right no-repeat;
height: 31px;
}

.tcat_text {
padding: 10px; /* may need to play around with this value depending on your images */

Template I applied the tcat DIVs to:

forumhome_forumbit_level1_nopost

Code:

</table>
<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tbody>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

<div class="tcat_main"><div class="tcat_left"><div class="tcat_right"><div class="tcat_text">

                        <if condition="$childforumbits">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        </if>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</div></div></div></div>
                </td>
        </tr>

    <tr align="center">
      <td class="thead" width="4%">&nbsp;</td>
      <td class="thead" width="65%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="6%">$vbphrase[last_post]</td>
      <td class="thead" width="6%">$vbphrase[threads]</td>
      <td class="thead" width="6%">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead" width="13%">$vbphrase[moderator]</td>
      </if>
    </tr>

</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

RED signifies the 3 piece tcat codes

Audentio 10-04-2007 01:39 AM

Since you aren't using rounded corners, you don't need to use the three divs :P. You can use one and add a border and you will get the look you are after. Revert the templates, take out that css I gave you, and add something for the .tcat area in css:

For the background -

#hex url(images/tcat_bg.gif) top left repeat-x;

Then in the extra css portion, try -

border: 1px solid #hex; /* This is that red border you have */

You will also probably need to crop the border out of the main category tcat bg.

Pandemix 10-04-2007 07:48 PM

Actually my tcat strip looks like:

http://sixpop.com/images/file/53751408.gif

Sorry I did not make that clear the first time. :(


All times are GMT. The time now is 09:14 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.01299 seconds
  • Memory Usage 1,724KB
  • 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_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