I'm using the "pure CSS popup" from it creates a popup box on a hover action, but uses only CSS and no javascript. (I've fixed the bugs in it so it does actually work).
The CSS code I have is:
and the HTML for it is:
So far, the code works, but the problem is that it leaves artifacts... part of the box that pops up stays visible after leaving the text that's being hovered over and if you mouse over the section where the box popped up, it comes up again!
I've tried playing with the positioning and it seems to only be leaving the artifacts when position = absolute. But I've seen several other samples that use the same thing and don't leave artifacts or pop up again if you mouse over the area.
Any ideas as to what's wrong with this?
The CSS code I have is:
Code:
div a:hover {text-decoration: none;
border: none;}
div a span {display: none;
padding: 5px;
color: #000000;
font-size: 12px;
width: 200px;}
div a:hover span {display: block;
position: absolute;
top: 200px;
left: 150px;
width: 300px;
padding: 5px;
z-index: 100;
color: black;
border: red 2px solid;
background: white;}
and the HTML for it is:
Code:
<div id="popup"><a href="#">Text to MouseOver<span>Text to pop up</span></a></div>
So far, the code works, but the problem is that it leaves artifacts... part of the box that pops up stays visible after leaving the text that's being hovered over and if you mouse over the section where the box popped up, it comes up again!
I've tried playing with the positioning and it seems to only be leaving the artifacts when position = absolute. But I've seen several other samples that use the same thing and don't leave artifacts or pop up again if you mouse over the area.
Any ideas as to what's wrong with this?