Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Colouring Tables

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-18-2008, 07:44 AM
 
antonywalsh antonywalsh is offline
 

Member
  
Join Date: Dec 2007
Posts: 27
 

Default Colouring Tables

I have altered the menu_customer.tpl page to colour the tables within the vertical menu. But I still have some white lines that I can not get ride of. see the page http://www.pinkandcream.com/home.php?cat=253. Can someone help how to get rid of these white lines at the end of each menu. I cannot change anymore of the background colour in menu_customer.tple because it then changes the colour of the main menu etc.

This is my code of menu_customer.tpl

<table cellpadding="0" cellspacing="0" width="180">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="180">
{if $style eq "Categories" and $main eq "catalog" and $current_category.category eq ""}
<tr>
<td class="VertMenuCatWelcTitle" height="29" valign="bottom">
<img src="{$ImagesDir}/spacer.gif" width="17" height="1" alt="" />
{if $link_href}
<a href="{$link_href}"><font class="VertMenuCatWelcTitle">{$menu_title}</font></a>
{else}
<font class="VertMenuCatWelcBoxNewsTitle">{$menu_title}< /font>
{/if}
</td>
</tr>
<tr>
<td class="VertMenuCatWelcSeparator"><img src="{$ImagesDir}/customer_images/vert_blmenuwelc_sp.gif" width="32" height="9" alt="" /></td>
</tr>
<tr>
<td class="VertMenuCatWelcBox">
<table cellpadding="5" cellspacing="0" width="100%">
<tr>
{elseif $style eq "Categories" }
<tr>
<td class="VertMenuCatTitle" height="29" valign="bottom">
<img src="{$ImagesDir}/spacer.gif" width="27" height="1" alt="" />
{if $link_href}
<a href="{$link_href}"><font class="VertMenuCatWelcTitle">{$menu_title}</font></a>
{else}
<font class="VertMenuCatBoxNewsTitle">{$menu_title}</font>
{/if}
</td>
</tr>
<tr>
<td class="VertMenuCatSeparator"><img src="{$ImagesDir}/customer_images/vert_blmenu_sp.gif" width="32" height="9" alt="" /></td>
</tr>
<tr>
<td class="VertMenuCatBox">
<table cellpadding="5" cellspacing="0" width="100%">
<tr>
{else}
<tr>
<td height="29" valign="bottom" bgcolor="feffcc" class="VertMenuTitle">
<img src="{$ImagesDir}/spacer.gif" width="20" height="1" alt="" />
{if $link_href}
<a href="{$link_href}"><font class="VertMenuTitle">{$menu_title}</font></a>
{else}
<font class="VertMenuBoxNewsTitle">{$menu_title}</font>
{/if} </td>
</tr>
<tr>
{if $style eq "Cart"}
<td bgcolor="feffcc" class="VertMenuCartSeparator"><img src="{$ImagesDir}/customer_images/vert_cartmenu_sp.gif" width="20" height="9" alt="" /></td>
{else}
<td class="VertMenuSeparator"><img src="{$ImagesDir}/customer_images/vert_menu_sp.gif" width="20" height="9" alt="" /></td>
{/if}
</tr>
<tr>
<td bgcolor="feffcc" class="VertMenuBox">
<table cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="feffcc">
{if $style ne "Cart" and $hide_border ne "Y"}
<td><img src="{$ImagesDir}/spacer.gif" width="8" height="1" alt="" /></td>
{/if}
{if not $hide_bullets}
<td class="VertMenuBullets"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
{/if}
{/if}
<td width="100%">{$menu_content}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

I would very much appreciate if somebody can help me out on this.

Also on the same point how would I change the height of this menu that if I had 30 products listed and it went below the left menu the left menu colour would expand to the length of the page.

Many thanks
__________________
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 01-18-2008, 10:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Colouring Tables

Why not just color the whole background of that left hand container cell instead of the individual menus?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
printhouseusa (06-21-2010)
  #3  
Old 01-18-2008, 11:44 AM
 
antonywalsh antonywalsh is offline
 

Member
  
Join Date: Dec 2007
Posts: 27
 

Default Re: Colouring Tables

I did not colour the individual tables in the menu_customer page its made up of one table and many rows. If I colour just the rows I need it leaves white spaces if I BG colour the whole table it then colours the categories menu which I dont want. see www.pinkandcream.com/home.php
__________________
X-Cart Version 4.1.9
Reply With Quote
  #4  
Old 01-18-2008, 06:57 PM
 
antonywalsh antonywalsh is offline
 

Member
  
Join Date: Dec 2007
Posts: 27
 

Default Re: Colouring Tables

For hours now I have tried everything, can please someone help before I get old and grey.

I have change the vertmenu background colours in the skin1_c.css page, I have taken away all the spaces, I have changed the menu_customer.tpl page and colured the table that the menus are in and still there white gaps.

Has anyone some suggestions.

Please look at the example page. http://www.pinkandcream.com/home.php?cat=253
__________________
X-Cart Version 4.1.9
Reply With Quote
  #5  
Old 01-18-2008, 08:24 PM
 
sk8conz sk8conz is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 31
 

Default Re: Colouring Tables

Use the webmaster mode to see what tpl files are used. I think the menu items like special offers and most popular call different files as they are optional.
__________________
4.3.1
rounded white template
one page checkout
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:11 AM.

   

 
X-Cart forums © 2001-2020