Search code examples
htmlhtml-tablealignment

Pushing Content in HTML to top of the cell (vertically)


I am trying to push content in an HTML table to the top of the cell. I am using align to move it horizontally from left, right, and center, however, I am unsure how to align it vertically (top, middle, bottom).


Solution

  • You can use valign at cell level i.e:

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

    But I think valign is deprecated now.