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

Category Box rollover

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-23-2006, 07:52 PM
 
millsryno millsryno is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 36
 

Default Category Menu products in boxes

Hello,

How do I edit my category menus so that each product choice has its own box like in this link:

http://www.audilo.com/

As you can see, each product in the "Category" menu has a box surrounding it. I know how to get it to highlight, just don't know how to create the individual boxes or lines seperating the products.

Thanks,

Ryan
__________________
X-Cart Version 4.0.19
DSEFU PRO
www.HandPouredWorms.com
Reply With Quote
  #2  
Old 12-24-2006, 03:56 AM
 
balinor balinor is offline
 

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

Default Re: Category Menu products in boxes

Just add a border to the bottom of each category by editing the CategoriesList class. You will also need to change the <font style="CategoriesList"> tag to <div class="CategoriesList"> in customer/categories.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-24-2006, 12:02 PM
 
millsryno millsryno is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 36
 

Default Re: Category Menu products in boxes

Great, that worked. Now what I need is to have everything within that border to change background color upon rollover. Currently, only the area directly behind the text changes color. I need it so that even the dead space to the left and right of the text also changes color.
__________________
X-Cart Version 4.0.19
DSEFU PRO
www.HandPouredWorms.com
Reply With Quote
  #4  
Old 12-26-2006, 02:59 PM
 
millsryno millsryno is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 36
 

Default Category Box rollover

Regarding the category menu on www.audilo.com

For each category within the category menu, you will notice they are each within an individual box. Balinor was able to help me figure out how to do that (thanks Balinor!)

What I can't figure out is how he gets the entire box to change color upon rollover. I can get the background behind the text to change color, but can't figure out how to get the dead space to the left and right of the text to highlight like this site.

Thanks in advance for any help. I'm racking my brain trying to figure it out!
__________________
X-Cart Version 4.0.19
DSEFU PRO
www.HandPouredWorms.com
Reply With Quote
  #5  
Old 12-26-2006, 03:36 PM
 
balinor balinor is offline
 

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

Default Re: Category Box rollover

No need for a second thread on this topic. Add this to the link style you have for the menu items:

display: block;

That should color the whole box in.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 12-26-2006, 04:09 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Category Box rollover

You can also try this technique:

your table cell will start something like:
Code:
<td width="{$width}%" class="listing" onmouseover="this.className='listing2'" onmouseout="this.className='listing'">

and the corresponding css might look like:

Code:
.listing { border: 1px solid; padding: 7px; border-color: #E5E5E5; background: #FFF0F5; text-align: center; } .listing2 { border: 1px dotted #845974; padding: 7px; background: #C3E9EB; text-align: center; }
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 02:34 AM.

   

 
X-Cart forums © 2001-2020