SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Cell position

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Indiana
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cell position

    Is there anyone who knows how to find
    the current position of a table cell.

    <TABLE>
    <TR><TD></TD><TD ID='mycell' STYLE='position:relative'>Where am I?</TD></TR>
    </TABLE>

    I mean the left position, I just can't get it to work.

    document.all.mycell.style.left should work somehow

    but it just doesn't... unless I set the Left and top
    position. It's for IE5.... greatfull for any input

  2. #2
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This suggestion may not help but have you tried naming the table also and adding that to your DOM path?

  3. #3
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Indiana
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I got it to work using offsetLeft in Internet Explorer.

    Thanks
    - What is Netscape?


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
  •