Skip navigation
winrol
Currently Being Moderated

Accordion hover effect does not work with a link in the AccodionTab

Jul 31, 2012 8:59 PM

Tags: #cs5 #hover #accordion

Hi, I have an accordion widget set up on my site. http://www.emjmarketing.com

I set up the CFLAA Tab to be a link to my CFLAA page.  Here is the code:

 

<div class="AccordionPanel">

     <a href="cflaa.php"  onclick="window.location=this.href;return false;">

          <div class="AccordionPanelTab">CFLAA</div>

     </a>

          <div class="AccordionPanelTab">Emcee</div>

          Remainder of code.....

</div>

 

Now this all works fine.  When I click on CFLAA it takes me to the page just fine, but when I hover over CFLAA the hover effect for AccodionPanelTab does not work.  I have been looking around and trying different things but I can't seem to get it to work.

 

Any help would be appreciated.

 

Thanks in advance

 

Winrol

 
Replies
  • Currently Being Moderated
    Jul 31, 2012 9:20 PM   in reply to winrol

    Change

    <a href="cflaa.php"  onclick="window.location=this.href;return false;">

       <div class="AccordionPanelTab">CFLAA</div>

    </a>

    to

    <div class="AccordionPanelTab"><a href="cflaa.php" onclick="window.location=this.href; return false;">CFLAA</a></div>

    and apply a style rule that overrides the site wide anchor element ('a') rule as in

    .AccordionPanelOpen .AccordionPanelTabHover a {

        color: red;

    }

    Gramps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points