View Single Post
Old 01-18-2011, 10:20 AM   #1
dieda1821
Junior Member
dieda1821 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2011
Device: Sony PRS-650
a:hover .child - does not work properly on ADE

Dear all,

I tried the following xhtml+css valid code:

XHTML FILE

<a href="#" alt="" class="trial">Trial<span class="red">Red text</span></a>

CSS FILE

a.trial:hover .red{
color:red;
}

This should make the "Red text" red coloured when hovering either the text "Trial" or the "Red text" one.

If I insert this code in the xhtml and css files inside an .epub, the :hover class does not work properly in ADE: it is somehow shifted to the span.red element only, and hovering the text "Trial" does not produce any effect.

In fact, "Red text" becomes red coloured when hovering itself only.

In ADE:

a.trial:hover .red{
color:red;
}

and

.red:hover{
color:red;
}

are rendered at the same way.

Does anyone know why this happens and how I could have, in ADE, something happening at a text when hovering, or eventually clicking, another element ?

I also posted the question in the ADE assistance forum (although it is too technical maybe).

Thanks in advance

Elena
dieda1821 is offline   Reply With Quote