| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Hiding Code in Section | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
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:
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 |
|||||||||
|
#2
|
|||||||
|
|||||||
|
(Assuming that the TD code is correct) - If the last element(s) of the speed bar is(are) not active ("Y") then there will be a space after the last tab. I don't see a way to make it work in this case without doing a two pass type loop where you get the "active" tabs on the first pass then diisplay them on the second.
|
|||||||
|
#3
|
|||||||||
|
|||||||||
|
That was it....I wasn't thinking about the last item not being active. Thank you for your reply.
Louise
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||