SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    < img ALT="text"> in wrong font in Netscape

    <img border="0" src="../images/icon5.gif" width="46" height="37" ALT="Bicycle hire">

    in Netscape 4.08 the hover text 'Bicycle hire' is in serif (Times font like) in Explorer 6.x it is sans-serif (Arial font alike).

    Is there a way too correct this in my css - file?
    Thanks

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, and they're shouldn't be (I seem to be giving a lot of bad news today). The alt tag is for accessibility and should represent the subject of the image. It's not a pop-up!

    Silver lining: use the title attribute for additional info and a pop-up, but I still don't think that NS4 (I assuming) will put it in a sans-serif font. Besides, isn't that just a little nit-picky. :-)

    ~~Hope This Helps

  3. #3
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you do want to use a popup like feature, you might want to check out Overlib.
    Jeroen Mulder

    w: www.jeroenmulder.com

  4. #4
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I should have mentioned DHTML. You might want to check out DynamicDrive for other tooltip effects, too. :-)

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Location
    UK
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The tooltip font is determined by the browser's default text font setting for pages with no CSS on them or font tags. (I still find a lot of these!) Change it from Times to Arial or as you see fit, and the tooltip follows!

  6. #6
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you it worked. I changed Font Pref. in NetScape and the tooltip font followed.

    BUT

    all pg. have an external .css file link with the following main element

    BODY, TABLE, P, TR, TD, TH, DIV, BLOCKQUOTE, UL, OL, P, DL, DT, DD, INPUT, SELECT, TEXTAREA
    { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; }

    What do I have to ad to make the tooltip font following? Ian mentioned an incorrect use of the css functionality. Thanks & Greetings Hong Kong 8.21 AM


  7. #7
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Location
    UK
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    You cannot force the browser font. It might be Times on one machine, Courier another... just one of those things.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •