Vertical align in html please help?

2008-12-22 10:00 pm
I already created a table in html, but I am having trouble valigning the content to the top of the cell, it is not working, where do I write valign="top" ? I wrote it next the to table width, nothing changed, there is text in the table that I am creating, like a letter. Any ideas please? thanks.

回答 (2)

2008-12-22 11:50 pm
✔ 最佳答案
add valign=top to where you need to align the content.

For example, if you want to align the content inside a cell, you'll have <td valign="top">. This will align all text/content inside that cell to the top of the cell.

If you want to align the contents in a row, you'll have <tr valign="top">. This will align all your td cells to the top of the cell.
2008-12-22 10:15 pm
Try it in the table data tag:

<td valign="top" >info</td>

Or it might be the table row tag <tr> where you place it.


收錄日期: 2021-05-03 13:58:12
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20081222140020AAp2nQO

檢視 Wayback Machine 備份