SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Positioning with Coords

    Hi,

    I'm using jquery to popup a tell a friend form. Just wondering what the best way to position it would be. I have a absolute feature which appears over the popup so I need it to be to the right of that. However, coordinate positioning depends on the browser res. Whats the best way to position this?

    Cheers,
    Rhys

  2. #2
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind,

    I used:
    Code:
    var linkPos = $(this).position();
    ...
    position: [linkPos.left-300,390]
    ...


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
  •