SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: CSS & Alt tags

  1. #1
    SitePoint Enthusiast robcg's Avatar
    Join Date
    Mar 2001
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS & Alt tags

    is it possible to display an alt tag on a "hover" link using CSS? in other words, when they hover over the text i want additional text to pop up.

    thanks.

    robcg
    for web design visit:
    www.rcgodina-design.com

  2. #2
    SitePoint Member tscratch's Avatar
    Join Date
    May 2001
    Location
    Florida
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't know if you can do it with CSS. I've never seen it. You can use the "title" attribute to do this (at least in IE)

    <a href="http://www.blah.com" title="Blah, blah, blah">Blah.com</a>

    hth,

    Troy

  3. #3
    SitePoint Enthusiast robcg's Avatar
    Join Date
    Mar 2001
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that's what i was looking for. thanks!

    robcg
    for web design visit:
    www.rcgodina-design.com

  4. #4
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [insert obligatory rant about why you shouldn't use alt tags for tool tips]

    This is one of the major practical advantages of using title="" for tooltips instead of alt="". You can put a title attribute on just about ANYTHING. Tooltips on links. Tooltips on table cells. Tooltips on submit buttons. etc.

    (at least in IE)
    Works in the mozilla family (mozilla, netscape 6/7, chimera, galeon) too. This is the W3C-preferred way of doing tooltips, so I wouldn't be surprised if other browsers also support it.


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
  •