I have the following code
<table style="height: 275px; width: 188px"> <tr> <td style="width: 259px;"> main page </td> </tr> </table>
The main page appears in the center of the cell I want it to appear at the top.
To place an item at the top or bottom of its cell, insert the "VALIGN=" attribute within the code for that cell. To vertically align an entire row (e.g., placing all data in that row at the tops of the cells), insert the "VALIGN=" attribute within the code for that row.
The <caption> tag defines a table caption. The <caption> tag must be inserted immediately after the <table> tag. Tip: By default, a table caption will be center-aligned above a table. However, the CSS properties text-align and caption-side can be used to align and place the caption.
https://developer.mozilla.org/en/CSS/vertical-align
<table style="height: 275px; width: 188px"> <tr> <td style="width: 259px; vertical-align:top"> main page </td> </tr> </table>
?
Add a vertical-align
property to the TD, like this:
<td style="width: 259px; vertical-align: top;"> main page </td>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With