Sample Programs

CSS Popup when you hover on link/text

When you hover on the above link and a pop will be displayed and when you hover out of the link, pop up will disapper. This is created using CSS as below.


<head><title>CSS Popup when you hover on link/text</title>


        div#hoverlink a span {display: none;}

        div#hoverlink a:hover span {
            display: block;
            position: absolute; 
            padding: 5px; 
            margin-left: -5px; 
            margin-top: 20px;
            z-index: 200;
            border: 1px solid #000000;
            text-align: left;
            text-decoration: none;
            font-family: Verdana, "Trebuchet MS", Arial, Helvetica, sans-serif;
            font-size: 11px;



<div id="hoverlink">
    <a href="">Hover popup link<span>
	Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eros ipsum, 
	volutpat quis condimentum sit amet, pharetra eget quam</span></a>



blog comments powered by Disqus