Sebastian
Sebastian

Reputation: 1654

Table centers content in cell - I want the opposite

My table is centering its contents right in the vertical-middle of it. I didn't apply any stylesheets to it, but: border="0" cellspacing="0" cellpadding="0".

At this moment it's like this:

enter image description here

Though I want it like this:

enter image description here

The X's do not represent simple text! In my case they're other tables inside one single table: The black box is a table. The blue and green boxes are table cells and the red Xes are also tables. One table in the blue - and one table in the green cell.

Do you have any advice for me?

Upvotes: 0

Views: 106

Answers (1)

Pekka
Pekka

Reputation: 449415

Table cells are vertically centered by default. Give each cell

vertical-align: top;

to fix it.

Upvotes: 3

Related Questions