HighDots Forums  

CSS tooltips question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS tooltips question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
noone
 
Posts: n/a

Default CSS tooltips question - 08-01-2003 , 04:34 PM






hello all.
this is some CSS code that I have and it works great with links. however,
is it possible to achieve the same effect for images, buttons, regular text,
etc. ?

maybe make a new class called "tooltip" that i can apply to items throughout
the
site whenever/wherever i need a popup.

similar to the TITLE attribute, but much better to look at

<style type="text/css">
..link a:link span{display: none;}

..link a:visited span{display: none;}

..link a:hover span {
position: absolute;
margin: 10px 0px 0px 10px; /*tooltip box*/
background-color: #E6F2FF;
padding: 5px 8px 5px 0px;
border: 1px dashed #336699;
font-weight: normal;
font-family: Verdana;
font-size: 8pt;
color: #336699;
text-align: center;
display: block;
</style>

<p class="link"><a href="#">link<span>this is a tooltip</span></a></p>

thanks all.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.