Buffon Buffon - 3 months ago 8
CSS Question

I want to align the text in a <td> to the top.

I have the following code

<table style="height: 275px; width: 188px">
<td style="width: 259px">
main page
</td>


</table>


The main page appears in the center of the cell I want it to appear at the top.

Answer

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>

?

Comments