Jump to content

Featured products background


Recommended Posts

Hi guys,

I have total of 6 products shown in the featured products block on my homepage. I'm trying to modify "homefeatured.css" so when I hover over the certain product, background shows covering the space behind everything inside that product's margin. I succeeded in making background behind the picture, name, description, and price but i would like to make background covering everything together as soon as the mouse pointer hovers over the product's margin. Any ideas how to do that?

Edited by Jaje (see edit history)
Link to comment
Share on other sites

It's complicated a bit, you should use css / jquery functions and modify the code of the homefeatured.tpl.

 

know how for that:

  1. add position:relative; overflow:hidden; to <li> with product details and add "liclass" to the class="" param
  2. create new (between the <li></li> tags) div with position:absolute; bottom: 160px;
  3. create jqeury script $(".liclass").hover(function(){change div bottom to 0px;}, function() { put it back to 160px; });

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...