View Single Post
  #1  
Old 09-16-2006, 07:18 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Hiding Code in Section

I am trying to add a space between each tab for a speedbar. I read other code and tried copying the idea and would like the space between tabs unless its the last tab and then no space because its right aligned and leaves a space and looks strange.

Here is the code:

Quote:
{if $speed_bar}
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
<TD>{include file="customer/tab.tpl" tab_title="<A href=\"`$speed_bar[sb].link`\">`$speed_bar[sb].title`</A>"}</TD>
{if not %sb.last%}
<TD width="2"><IMG src="{$ImagesDir}/spacer.gif" width="2" height="1" border="0" alt=""></TD>
{/if}
{/if}
{/section}
</TR>
</TABLE>
{/if}

What am I doing wrong?

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote