Click to See Complete Forum and Search --> : Top Alignment


azi_1
October 24th, 2005, 10:35 AM
I have some tabs placed in a table. I am trying to have the tabs start from the topmost part of the frame. In the body I have TOPMARGIN="0", and in the tr tag I have valign="top", but the tabs are still not at the top of the page. I don't know if I am missing anything in my code.
Would appreciate any help.
I have the following code:

<BODY LEFTMARGIN=0 TOPMARGIN="0" MARGINWIDTH=0 MARGINHEIGHT=0>
<!--- Tabs for Browse Mode --->

<table align="center" height="29" CELLSPACING=-2 CELLPADDING=-2 BORDER=0>
<tr valign="top" nowrap>

<td height="29" valign="TOP">
<a href="#" id="maint" class="titleBar></a>
</td>
<td height="29" valign="TOP">
<a href="#" id="tbl" class="titleBar></a>
</td>

<div id="app" align="left">
<td height="29" valign="TOP">
<applet Id="menu" Name="menu" >
</applet>
</td>
</div>

</table>
<style>

#app {
display: block;
position: absolute;
right: -10px
}

</style>

</BODY>

PeejAvery
October 24th, 2005, 11:12 AM
We can't see the Java applet tabs. It is possible that the code problem lies in the applet. Therefore since we don't have it, we can't do anything. As of right now, without the applet, it is perfectly aligned to the top in Firefox and IE.

What browser are you using? Have you tried without the applet params? Check the code you posted and see if there is a difference.

azi_1
October 24th, 2005, 01:37 PM
I am using IE browser.
I deleted the style tag and the alignment seems to work correctly.