473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

vAlign won't work

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>
Nov 19 '05 #1
2 1313
On Mon, 11 Apr 2005 11:19:32 -0500, VB Programmer <xD**********@Dont.com>
wrote:
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?

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
Doesn't look valigned on mine. Hmmmm
"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:op***************@deelscwxp2.na.corp.born.com ...
On Mon, 11 Apr 2005 11:19:32 -0500, VB Programmer <xD**********@Dont.com>
wrote:
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?

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John | last post by:
Below is my code. It seems that no matter what I do, I cannot get the following list of places to start at the top of the cell. It is always centered in the middle of the cell. Is vAlign the...
1
by: james | last post by:
Hi there, I'm using the FOP from xml.apache.org/fop tool to convert from HTML to PDF. I'm reading the height and valign attributes of a column-cell (TD) in the XSL file:
0
by: Bruce | last post by:
If I put an image in a table cell, it aligns with the top of the cell regardless of the valign tag. For example the following page: ************************ <html> <head> <title> a page to...
1
by: Cezar | last post by:
Hello, I need to valign the content of the columns in DataGrid. I tried the obvious thing Valign = "top" in <asp:DataGrid ..> but it doesn't seem to be working. Besides working with...
2
by: Arne | last post by:
I have problems aligning my left menu with the valign=top: http://test.unitedhardware.com/valign.html It happens a lot when the the middle pane is very complicated with a lot of nested tables. ...
2
by: Arne | last post by:
I have problems aligning my left menu with the valign=top: http://test.unitedhardware.com/valign.html It happens a lot when the the middle pane is very complicated with a lot of nested tables. ...
2
by: Arne | last post by:
I have problems aligning my left menu with the valign=top: http://test.unitedhardware.com/valign.html It happens a lot when the the middle pane is very complicated with a lot of nested tables. ...
7
by: maya | last post by:
I have an image and right next to the image I have some text, all w/in the same <td>.. but, even though I have valign="top" for the <td>, the text does not appear on top of the <td>, it appears...
6
by: Jeigh | last post by:
Hello, I've been designing a graphic to be behind a form. So I figure the best way to do this is to make a table, use a background image for a cell and then put the form inside that. That has all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.