Jump to content

show text when mouse over a link


hassank1

Recommended Posts

Here's the CSS I use...

a.popup {
	position:relative;
	z-index:24;
	color:#000000;
	text-decoration:none;
}
a.popup:hover {z-index:25; background-color:#FFCCD8 }
a.popup span {display:none; }
a.popup:hover span {
	display:block;
	position:absolute;
	top:35px; left:15px;
	width:200px;
	padding:3px;
	border:1px solid #000000;
	background-color:#FFCCCF; color:#000;
}

 

And here's how to use it in your code...

<a class='popup' href='http://thelink'>LINK<span>Put the description here.</span></a>

 

 

This allows you to add a description for any link which pops up when you roll over the link.  You can customize the colors, etc.  This is just an example from actual code I used in a project.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.