X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Category Box rollover (https://forum.x-cart.com/showthread.php?t=27598)

millsryno 12-23-2006 07:52 PM

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

balinor 12-24-2006 03:56 AM

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.

millsryno 12-24-2006 12:02 PM

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.

millsryno 12-26-2006 02:59 PM

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!

balinor 12-26-2006 03:36 PM

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.

carpeperdiem 12-26-2006 04:09 PM

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; }



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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.