vertical alignment in table cells

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
bonnie
Sr. Propeller Head
Posts: 158
Joined: Wed May 14, 2008 4:00 pm

vertical alignment in table cells

Post by bonnie »

Could someone please tell me where I can set the vertical alignment of text in a table cell?
I have tried putting the text in a paragraph tag that has Block display=table-cell and Block vertical-align=top, but I still get the text aligning in the middle of the cell, if, say one cell in the row has fewer lines than the other (the cell with fewer lines middle-aligns). I need each line in the first cell to align with the corresponding line in the second cell starting at the top line.

I've looked through this forum, but haven't found anything so far.
Thanks,
Bonnie
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: vertical alignment in table cells

Post by LTinker68 »

You need to set the vertical-align property on the <td> tag in the main topic stylesheet, not the paragraph tag. Unless it's the header row of the table, in which case you set it on the <th> or <thead> tag. I think <thead> is the proper tag, I'm still used to using the <th> tag.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
bonnie
Sr. Propeller Head
Posts: 158
Joined: Wed May 14, 2008 4:00 pm

Re: vertical alignment in table cells

Post by bonnie »

Thank you. That's what I needed to know.
The <th> tag seems to control the vertical alignment for the header rows.
Post Reply