I use a double tap (on iPhone): hover elements to display additional information, without javascript, just css: hover pseudoclass. Now I have a problem that the div that appears on: hover no longer disappears only if I click on another element: hover. Does the variable have a hover function in iOS?
li.to-be-hovered { position:relative; } li.to-be-hovered div.hidden { display:none; } li.to-be-hovered:hover div.hidden { display:block; position:absolute; }
And a little more - width, top, left, margin, background, z-index, etc.
<div> <ul> <li class="to-be-hovered"> <div class="hidden"> lots of extra information with image, span, link elements </div> </li> </ul> </div>
On my iPhone (4S) div.hidden appears on the first tab on div.to-be-hovered, but no longer disappears when I click to another place outside the element. Does anyone know this effect? Is it possible for it to disappear again using pure CSS, or do I need to use Javascript for all of these elements?
source share