# HTML Table Question

**URL:** https://boards.straightdope.com/t/html-table-question/238315
**Category:** Factual Questions
**Created:** [April 5, 2004, 6:52am UTC](https://boards.straightdope.com/t/html-table-question/238315 "2004-04-05T06:52:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Duderdude2](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@Duderdude2](https://boards.straightdope.com/u/Duderdude2)
#### Post date: [April 5, 2004, 6:52am UTC](https://boards.straightdope.com/t/html-table-question/238315/1 "2004-04-05T06:52:27Z")

</div>

Can I denote where objects appear vertically in a table? I know that with the “align” command, I can specify where horizontally the object will appear; is there a vertical alternative?

At the moment, I have a table with two cells side by side. The right cell’s height varies according to the amount of text, thus, depending on the text amount, it may extend both cell’s vertical height. This messes up my left cell which contains an image, causing the image to be centered in the now vertically extended cell. Ideally, I’d like the image be located at the top of the cell constantly. Is there a way to do this? Thanks!

---

<div class="post-metadata">

### Author: ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)
#### Post date: [April 5, 2004, 7:03am UTC](https://boards.straightdope.com/t/html-table-question/238315/2 "2004-04-05T07:03:28Z")

</div>

Yeah you got your “align” which can be either LEFT, RIGHT or CENTER and your “valign” which is TOP, MIDDLE or BOTTOM.

---

<div class="post-metadata">

### Author: ![Duderdude2](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@Duderdude2](https://boards.straightdope.com/u/Duderdude2)
#### Post date: [April 5, 2004, 7:06am UTC](https://boards.straightdope.com/t/html-table-question/238315/3 "2004-04-05T07:06:54Z")

</div>

Seems simple enough, many thanks.

---

<div class="post-metadata">

### Author: ![GuanoLad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/guanolad/32/42_2.png) [@GuanoLad](https://boards.straightdope.com/u/GuanoLad)
#### Post date: [April 5, 2004, 7:17am UTC](https://boards.straightdope.com/t/html-table-question/238315/4 "2004-04-05T07:17:01Z")

</div>

Don’t rely on that, though. In some circumstances vertical aligning refuses to work as you might expect.

It pretty much doesn’t work at all with CSS.

---

<div class="post-metadata">

### Author: ![Duderdude2](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@Duderdude2](https://boards.straightdope.com/u/Duderdude2)
#### Post date: [April 5, 2004, 8:02am UTC](https://boards.straightdope.com/t/html-table-question/238315/5 "2004-04-05T08:02:48Z")

</div>

> [@GuanoLad](#):
>
> Don’t rely on that, though. In some circumstances vertical aligning refuses to work as you might expect.
> 
> It pretty much doesn’t work at all with CSS.

I imagine I’d have to be using CSS on my page for that to make a difference, right? Unless there’s some other form of CSS I’m unfamiliar with. Thanks for the heads-up though.

---

<div class="post-metadata">

### Author: ![GuanoLad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/guanolad/32/42_2.png) [@GuanoLad](https://boards.straightdope.com/u/GuanoLad)
#### Post date: [April 5, 2004, 9:53am UTC](https://boards.straightdope.com/t/html-table-question/238315/6 "2004-04-05T09:53:46Z")

</div>

Sorry 🙂 The CSS remark was an aside. (I should’ve put it in brackets, I suppose)

My warning still stands on HTML’s vertical align, but for most simple uses it will probably work fine.
