frankmorrison
asked on
Anchor floating DIV to image
I have a div that needs to be anchored to a table that is centered on the page. The problem is that if the user resizes its browser window, the table moves but not the div. Can anyone help me anchor the div to the table?
<div align="center">
<table border="1" width="100" height="248" id="table1">
<tr>
<td align="center">table
<div style="position: absolute; width: 231px; height: 29px; z-index: 1; left: 579px; top: 24px" id="layer1">
This Div should anchor as the table moves</div>
</td>
</tr>
</table>
</div>
<div align="center">
<table border="1" width="100" height="248" id="table1">
<tr>
<td align="center">table
<div style="position: absolute; width: 231px; height: 29px; z-index: 1; left: 579px; top: 24px" id="layer1">
This Div should anchor as the table moves</div>
</td>
</tr>
</table>
</div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome ;-)