SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Coordinates/Position on Element
-
Jun 6, 2007, 07:09 #1
- 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.
-
Jun 6, 2007, 07:16 #2
- 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
-
Jun 6, 2007, 08:35 #3
- 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