Spencer
Spencer

Reputation: 22380

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

Upvotes: 1

Views: 487

Answers (2)

systempuntoout
systempuntoout

Reputation: 74104

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

The valign attribute is supported in all major browsers.

Here a live example.

Upvotes: 0

Chandu
Chandu

Reputation: 82913

You can use valign at cell level i.e:

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

But I think valign is deprecated now.

Upvotes: 1

Related Questions