469,336 Members | 5,552 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

Easy vAlign question

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 correct command for
it to start listing at the top of the cell?

Response.Write "<TABLE BORDER=""1"">"
Response.Write "<TABLE WIDTH=150>"
Response.Write "<TD vAlign=top>"
Response.Write "<TR><TD>" & "<FONT face=""Arial"" size=1>"&
"<Ahref=DurbanSuburbs.asp>" & "Central Durban" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "La Lucia"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Umhlanga
Rocks"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "<A
href=KZNBerea.asp?link=Mount_Edgecombe>" & "Mount Edgecombe" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Glenashley"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Durban
North"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "North Beach"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "South Beach"
Jul 19 '05 #1
5 2718
John wrote on 19 jul 2003 in microsoft.public.inetserver.asp.general:
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 correct command for
it to start listing at the top of the cell?

Response.Write "<TABLE BORDER=""1"">"
Response.Write "<TABLE WIDTH=150>"
Response.Write "<TD vAlign=top>"
Response.Write "<TR><TD>" & "<FONT face=""Arial"" size=1>"&
"<Ahref=DurbanSuburbs.asp>" & "Central Durban" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "La Lucia"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Umhlanga
Rocks"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "<A
href=KZNBerea.asp?link=Mount_Edgecombe>" & "Mount Edgecombe" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Glenashley"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Durban
North"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "North Beach"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "South Beach"


ASP does not know about tables, cells, vertical aligning.

Even though you write this with Response.Write, an I can see no reason
why you do this, your question is still clientside, so off topic on this
asp NG.

Please see a clientside group.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
This is an ASP group. Try posting HTML questions to an html group or one
that is for the browser that you are using.

Ray at home

--
Will trade ASP help for SQL Server help
"John" <jo**@hokykoky.com> wrote in message
news:5a**************************@posting.google.c om...
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 correct command for
it to start listing at the top of the cell?

Response.Write "<TABLE BORDER=""1"">"
Response.Write "<TABLE WIDTH=150>"
Response.Write "<TD vAlign=top>"
Response.Write "<TR><TD>" & "<FONT face=""Arial"" size=1>"&
"<Ahref=DurbanSuburbs.asp>" & "Central Durban" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "La Lucia"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Umhlanga
Rocks"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "<A
href=KZNBerea.asp?link=Mount_Edgecombe>" & "Mount Edgecombe" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Glenashley"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Durban
North"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "North Beach"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "South Beach"

Jul 19 '05 #3

"John" <jo**@hokykoky.com> wrote in message
news:5a**************************@posting.google.c om...
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 correct command for
it to start listing at the top of the cell?

Response.Write "<TABLE BORDER=""1"">"
Response.Write "<TABLE WIDTH=150>"
aharrrrrrr

remove these two lines
Response.Write "<TD vAlign=top>"
Response.Write "<TR><TD>" & "<FONT face=""Arial"" size=1>"&
and replace with Response.Write "<TR><TD vAlign=top>" & "<FONT face=""Arial"" size=1>"&
you had the TD(cell) conatining a TR(row)
"<Ahref=DurbanSuburbs.asp>" & "Central Durban" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "La Lucia"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Umhlanga
Rocks"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "<A
href=KZNBerea.asp?link=Mount_Edgecombe>" & "Mount Edgecombe" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Glenashley"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Durban
North"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "North Beach"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "South Beach"

Jul 19 '05 #4

"Mosley" <ho**@that.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"John" <jo**@hokykoky.com> wrote in message
news:5a**************************@posting.google.c om...
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 correct command for
it to start listing at the top of the cell?

Response.Write "<TABLE BORDER=""1"">"
Response.Write "<TABLE WIDTH=150>"
aharrrrrrr


Even better would be to use CSS

add this to your page

<stylr>

TD{
vertical-align : top ;
text-align : center

}

</style>



remove these two lines
Response.Write "<TD vAlign=top>"
Response.Write "<TR><TD>" & "<FONT face=""Arial"" size=1>"&


and replace with
Response.Write "<TR><TD vAlign=top>" & "<FONT face=""Arial"" size=1>"&


you had the TD(cell) conatining a TR(row)
"<Ahref=DurbanSuburbs.asp>" & "Central Durban" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "La Lucia"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Umhlanga
Rocks"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "<A
href=KZNBerea.asp?link=Mount_Edgecombe>" & "Mount Edgecombe" & "</A>"

Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Glenashley"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "Durban
North"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "North Beach"
Response.Write "<BR>" & "<FONT face=""Arial"" size=1>" & "South Beach"


Jul 19 '05 #5
Mosley wrote:
aharrrrrrr


Did somebody just see "Pirates of the Carribean"?

Bob
Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bruce | last post: by
12 posts views Thread by Phil Powell | last post: by
reply views Thread by Arne | last post: by
4 posts views Thread by dterrors | last post: by
1 post views Thread by Cezar | last post: by
2 posts views Thread by Arne | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.