Results 1 to 3 of 3

Thread: Netscape problems

  1. #1

    Thread Starter
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    In netscape navigator 4x, say i have something like this

    Code:
    <table>
    <tr>
    <td>
    
    <div id="obj1">text</div>
    
    </td>
    </tr>
    </table>
    how can i access the div "obj1"? i have tried document.obj1.document.whatever, but that doesn't work... i have also tried < layer > and < span > but i can't contact them, or get any of them to work right when they are inside of a table. can anyone help? also, how can i center a < div > directly in the middle of the page, using css properties?

    thanks

  2. #2
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    if you wanna center the div tag in the center of the page, use the align property:
    Code:
    <div align="center">Hello</div>
    and what language did you want to reference the div in?

    later

  3. #3

    Thread Starter
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    thanks, i was thinking that the align center property would just center text within the DIV, but i guess i was wrong. I am using javascript, as the language for referencing the DIV.

    What my problem i am havng is that when i am trying to reference it, to get it to work would i have to do this?

    document.tablename.trname.tdname.divname?

    -or-

    document.tablename.document.trname.tdname.divname?

    what would i want to do?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width