|
-
Jan 30th, 2001, 08:05 PM
#1
Thread Starter
PowerPoster
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
-
Jan 30th, 2001, 09:04 PM
#2
Hyperactive Member
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
-
Jan 30th, 2001, 09:17 PM
#3
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|