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
https://forums.phpfreaks.com/topic/191599-div-overlay-and-repeat-region/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.