Satal Keto
03-13-2007, 01:27 PM
I am creating a dynamic website which has tables within a table.
What I am trying to do is position the inner tables to the top of the cells in the containing table.
The CSS I am using to try and position the inner tables is
div.box {top:0px; left:0px; position:relative;}
And the code I am using for the inner tables is
<div class='box'><table width='90%' border='1'><tr>
<td background='images/boxtitle.gif'><div align='right'>Test 1 [<span onClick='switchMenu("_1")'>+</span>] </div></td>
</tr><tr><td bgcolor='#161616'><div align='center' id='_1'>Content<br>Goes in here</div></td></tr></table>
Although I would have expected for the tables to be at the top they are remaining in the middle
(as shown in this screen pic)
http://img243.imageshack.us/img243/9227/untitledhe0.th.jpg (http://img243.imageshack.us/my.php?image=untitledhe0.jpg)
Does anyone have any idea what I am doing wrong as I can't seem to figure this out and its really bugging me.
Thanks for any help in advance
Satal Keto
What I am trying to do is position the inner tables to the top of the cells in the containing table.
The CSS I am using to try and position the inner tables is
div.box {top:0px; left:0px; position:relative;}
And the code I am using for the inner tables is
<div class='box'><table width='90%' border='1'><tr>
<td background='images/boxtitle.gif'><div align='right'>Test 1 [<span onClick='switchMenu("_1")'>+</span>] </div></td>
</tr><tr><td bgcolor='#161616'><div align='center' id='_1'>Content<br>Goes in here</div></td></tr></table>
Although I would have expected for the tables to be at the top they are remaining in the middle
(as shown in this screen pic)
http://img243.imageshack.us/img243/9227/untitledhe0.th.jpg (http://img243.imageshack.us/my.php?image=untitledhe0.jpg)
Does anyone have any idea what I am doing wrong as I can't seem to figure this out and its really bugging me.
Thanks for any help in advance
Satal Keto