Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SHTML Navigation Menu Page Position

Status
Not open for further replies.

zinderellie

Technical User
Oct 28, 2002
38
US
I have my site navigation menu placed vertically along the left margin. When I had it in a frame, it was position at the upper left as desired. However, I noticed the menu wasn't visible in IE. I am using Mozilla, but testing the view in both.

I changed the menu code to:

<table align="left" valign="top" hspace="0" vspace="0">
<tr>
<td><!--#include file="menu.shtml"-->
</td>
</tr>
</table>

From this:

<table>
<tr>
<td align="center"><!-- IFRAME -->
<iframe width="275" name="menu" height="3500" src="menu.shtml" border="0" frameborder="0" scrolling="auto" align="left" hspace="0" vspace="0"></iframe>
</td>
</tr>
</table>


Now the menu floats to be centered on the left margin. I want it to be anchored in the upper left margin. I am including the page URL so you can see the page code. I'd like to understand what I am doing wrong, and how to correct the menu position.

Thanking you in advance for any help. =)
 
Your aligns on the table element have no effect. You need to put the aligns (mainly in your case the top valign) on your table cell. You could do one of the two:
Code:
<td [!]valign="top"[/!]><!--#include file="menu.shtml"--></td>
or
Code:
<td [!]style="vertical-align: top;"[/!]><!--#include file="menu.shtml"--></td>
I would always suggest #2, but your page does not follow any of the modern web design standards, so you might as well use #1. Until you get rid of tables for positioning.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top