Results 1 to 3 of 3

Thread: Hover text - CSS?

  1. #1
    Join Date
    Feb 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hover text - CSS?

    Hi,

    I have some links that I would like to display explanatory text when the user hovers over. I know I can use alt text or tooltips so that the text appears but I would like it to appear in a separate box (some of the text is quite long and not really suitable for the regular tooltip. When the user stops hovering the text should disappear again.

    Is it possible to do this using pure css or does it involve javascript?

    Thanks in advance for any help.


    John

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Not using pure css (that I'm aware of), but you could try using these Javascripts:

    http://www.dynamicdrive.com/dynamicindex5/linkinfo.htm
    http://www.dynamicdrive.com/dynamicindex5/linkinfo2.htm

    Hope this helps.

  3. #3
    Join Date
    Oct 2006
    Location
    New York, NY, USA
    Posts
    262
    Thanks
    42
    Thanked 24 Times in 24 Posts

    Default CSS styled <dl> definition lists

    I think inspiration may lie somewhre in these sources:
    http://www.webreference.com/programm...yle/index.html
    http://www.alistapart.com/articles/cssmaps/
    http://www.dynamicdrive.com/style/cs...gallery/#thumb

    A <dl> definition list can have numerous <dt> definition term each <dt> can have more than one <dd> definition data/description.

    Couldn't one of the <dd>'s (with a chunk on text) be styled with the CSS hover/span methodolgy?

    a a:visited { position: RELATIVE; display: block; }
    a SPAN { display: NONE; }
    a:HOVER span { display: BLOCK; position: ABSOLUTE; [... etc ...] }

    I myself am having an IE/Win problem with DD's CSS-imaage-gallery at http://chanit.com/gallery/index.html and am therefore in the midst of trying some such thing.
    Last edited by auntnini; 03-02-2007 at 09:53 PM.

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
  •