Easy vAlign question

J

John

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"
 
E

Evertjan.

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.
 
R

Ray at

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
 
M

Mosley

John said:
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)
 

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
474,266
Messages
2,571,086
Members
48,773
Latest member
Kaybee

Latest Threads

Top