PDA

View Full Version : change font in Cool DHTML Tooltip II



sandra
03-09-2008, 08:16 AM
Hi, I used Cool DHTML Tooltip II for my page but i want to change the font which shows in tooltip.
could any one help me in this issue?
thanks

link:
http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm

codeexploiter
03-10-2008, 05:49 AM
The following is the default ID used in the dhtml tooltip in which there is no font name specified. You can modify that ID in your case and specify a 'font-family' property and the font name which you want to use. As an example you can check the highlighted line in the following section:



#dhtmltooltip{
position: absolute;
left: -300px;
width: 150px;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
/*Remove below line to remove shadow. Below line should always appear last within this CSS*/
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
font-family: arial;
}