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.



<html>

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

    <style>

        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;
            background-color:#ffffff;
            width:150px;
        }


    </style>
</head>

<body>

<div id="hoverlink">
    <a href="http://www.jusfortechies.com">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>

</div>

</body>
</html>



blog comments powered by Disqus