vAlign won't work

V

VB Programmer

I have a bunch of hyperlinks in a table cell and I set the valign to
"middle", but they stay at the top. Any ideas? Here's the html...

Thanks in advance!

<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="300" border="0">
<TR>
<TD><A href="http://www.zzz.com"><IMG height="23" alt=""
src="images_generic/Copyright.png" width="166" border="0"></A></TD>
<TD background="images_generic/NavBar.png" valign="middle">
<P align="center">-
<asp:HyperLink id="HyperLink1" runat="server"
NavigateUrl="Default.aspx">Home</asp:HyperLink>
&nbsp;-&nbsp;
<asp:HyperLink id="Hyperlink2" runat="server"
NavigateUrl="zzz.aspx">AAPEX</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink3" runat="server"
NavigateUrl="Links.aspx">Links</asp:HyperLink>
-
<asp:HyperLink id="Hyperlink4" runat="server"
NavigateUrl="FAQ.aspx">FAQ</asp:HyperLink>
-
<asp:HyperLink id="Hyperlink5" runat="server"
NavigateUrl="Membership.aspx">Membership</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink6" runat="server"
NavigateUrl="Contact.aspx">Contact</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink7" runat="server"
NavigateUrl="Press.aspx">Press Release</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink8" runat="server"
NavigateUrl="Login.aspx">Login</asp:HyperLink>&nbsp;-
</P>
</TD>
</TR>
<TR>
<TD><IMG height="23" alt="" src="images_generic/BL2.png" width="166"></TD>
<TD><A onmouseover="window.status='Affordable, Professional Website
Design!'; return true;"
onmouseout="window.status=''; return true;"
href="http://www.aaa.com"><IMG height="23" alt=""
src="images_generic/GTI.png" width="600" border="0"></A></TD>
</TR>
</TABLE>
 
C

Craig Deelsnyder

I have a bunch of hyperlinks in a table cell and I set the valign to
"middle", but they stay at the top. Any ideas? Here's the html...

Thanks in advance!

<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="300"
border="0">
<TR>
<TD><A href="http://www.zzz.com"><IMG height="23" alt=""
src="images_generic/Copyright.png" width="166" border="0"></A></TD>
<TD background="images_generic/NavBar.png" valign="middle">
<P align="center">-
<asp:HyperLink id="HyperLink1" runat="server"
NavigateUrl="Default.aspx">Home</asp:HyperLink>
&nbsp;-&nbsp;
<asp:HyperLink id="Hyperlink2" runat="server"
NavigateUrl="zzz.aspx">AAPEX</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink3" runat="server"
NavigateUrl="Links.aspx">Links</asp:HyperLink>
-
<asp:HyperLink id="Hyperlink4" runat="server"
NavigateUrl="FAQ.aspx">FAQ</asp:HyperLink>
-
<asp:HyperLink id="Hyperlink5" runat="server"
NavigateUrl="Membership.aspx">Membership</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink6" runat="server"
NavigateUrl="Contact.aspx">Contact</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink7" runat="server"
NavigateUrl="Press.aspx">Press Release</asp:HyperLink>
&nbsp;-
<asp:HyperLink id="Hyperlink8" runat="server"
NavigateUrl="Login.aspx">Login</asp:HyperLink>&nbsp;-
</P>
</TD>
</TR>
<TR>
<TD><IMG height="23" alt="" src="images_generic/BL2.png"
width="166"></TD>
<TD><A onmouseover="window.status='Affordable, Professional Website
Design!'; return true;"
onmouseout="window.status=''; return true;"
href="http://www.aaa.com"><IMG height="23" alt=""
src="images_generic/GTI.png" width="600" border="0"></A></TD>
</TR>
</TABLE>

Hmmm, I just ran this and it seemed to work, although the first cell on
that row is only 23 pixels high (the height of the image), so you can't
tell that it is in the middle (the cell with the links is taller as the
links are wrapping in the second cell as the table width is 300).

If I added a bunch of <BR>s to the first cell and redisplayed, the links
do show up in the middle vertically....

What are you expecting to see?
 
V

VB Programmer

Doesn't look valigned on mine. Hmmmm
Craig Deelsnyder said:
Hmmm, I just ran this and it seemed to work, although the first cell on
that row is only 23 pixels high (the height of the image), so you can't
tell that it is in the middle (the cell with the links is taller as the
links are wrapping in the second cell as the table width is 300).

If I added a bunch of <BR>s to the first cell and redisplayed, the links
do show up in the middle vertically....

What are you expecting to see?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top