SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Evangelist NokX's Avatar
    Join Date
    Feb 2003
    Location
    Knoxville, TN
    Posts
    531
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Coordinates/Position on Element

    i have a link that when clicked creates a <div> that displays my tooltip.

    that works just fine.

    what i'm wanting is for the tooltip to appear at the top-right part of the link. without having set the left/top/width/height of the link, i'm not sure how i can call those attributes.

  2. #2
    SitePoint Evangelist NokX's Avatar
    Join Date
    Feb 2003
    Location
    Knoxville, TN
    Posts
    531
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    fyi: i think this is going to be of some help...

    http://www.quirksmode.org/js/findpos.html

  3. #3
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could set the link (or its class) to have position:relative,
    and append the tooltip to the link with position:absolute;right:0;top:0.


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
  •