PDA

View Full Version : "Cool DHTML Tooltip II" problem with font in FF



Catfish
10-07-2005, 07:46 PM
Greetings brave helpers,

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

When I change font type in this tooltip, I do it like this:

<font face="Verdana" size="1">
.... The script
</font>

IE and Opera (and Safari I am told) displays it accordingly. But not FF, it shows it in a "Times New Roman" stile font.

However, on your test page FF has no problem, but when I make a test page with only the "dhtmltooltip2" code FF again shows the tooltip as mentioned... so I guess there must be some crucial difference between the actual code in test page and the mentioned code in the test page!

My question in short :
How do I change the font type in this tool tip, so FF also will get it?

Thank you for any help :)

ddadmin
10-08-2005, 10:14 AM
You definitely should be using CSS in ths case to change the font. Just add to the CSS of Step 1:

#dhtmltooltip{
font: normal 12px Verdana;
"
"
}

This should change the font for all browsers.

Catfish
10-08-2005, 01:24 PM
Perfect it works :D
Thanx for a swift and easily put answer..