Jump to content

DIV overlay and repeat region


adambedford

Recommended Posts

So I've got some CSS that uses the :hover function to display an additional div, however this is applied to the results of a query and the results are a result of a repeat region (obviously). The problem is that when I hover over the results, <li> in this case, the div overlay shows for all records, not just the one that is hovered over.

 

I kind of get why this is happening (CSS happens once the repeat region has happened and so the :hover is applied to all of the <li>s) however I can't think of a way to overcome it.

 

I'm sure there's a way somehow, even if it involves using javascript, but what is it? I'm not 100% sure this is a PHP problem so please move this is I'm way off the mark.

 

Any ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.