Customers SupportDocumentation




Reply
 
Thread Tools
  #1  
Old 24-12-2007, 08:10 PM
Member
 
Join Date: Dec 2007
Location: NJ
Posts: 2
Create a 3 part tcat strip

In this article, you will learn a very handy CSS and HTML trick that will allow you to split your tcat into 3 parts. This technique is used on images that have rounded corners or non-symmetrical sides.

Go to: Style Manager - Main CSS - Additional CSS Definitions

Place this code in the Additional CSS Definitions spot.

Code:
.tcat_center {
background: url(xx.gif) top left repeat-x;
height: xxpx;
}

.tcat_left {
background: url(xx_left.gif) top left no-repeat;
height: xxpx;
}

.tcat_right {
background: url(xx_right.gif) top right no-repeat;
height: xxpx;
}

.tcat_text {
padding: 10px;
}
You may need to change the padding in tcat_text to match your image.

Go to: Search in Templates - forumhome_forumbit_level1_nopost

Find the first instance of:

Code:
<if condition="$childforumbits">
And add ABOVE:

Code:
<div class="tcat_center"><div class="tcat_left"><div class="tcat_right"><div class="tcat_text">
Now find:

Code:
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
And add BELOW:

Code:
</div></div></div></div>
This amazing trick is done with a few simple, DIV's. Pretty cool, isn't it?

Any questions or comments can be posted here. Thank you for reading.

Copyright 2007 Pandemix. vBSkinZone
Reply With Quote
  #2  
Old 27-12-2007, 04:42 PM
Senior Member
 
Join Date: Dec 2007
Posts: 326
Re: Create a 3 part tcat strip

Any screenshots so we can see exactly what this achieves?
Reply With Quote
  #3  
Old 27-12-2007, 09:23 PM
Member
 
Join Date: Dec 2007
Location: NJ
Posts: 2
Re: Create a 3 part tcat strip

Look at vBSkinZone, or my forum. The tcat is rounded.
Reply With Quote
  #4  
Old 28-12-2007, 04:59 PM
Senior Member
 
Join Date: Dec 2007
Posts: 326
Re: Create a 3 part tcat strip

Right

Pretty impressive stuff!
Reply With Quote
  #5  
Old 02-01-2008, 12:12 PM
Member
 
Real Name: Norman
Join Date: Aug 2007
Location: [Italy]
Posts: 5
Re: Create a 3 part tcat strip

Nice idea! I'll try it.
__________________
Web City Forum Online
Reply With Quote
Reply

Tags
coding tutorials , vbulletin articles , vbulletin tutorials

Thread Tools



All times are GMT. The time now is 02:20 PM.