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