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
vertical alignment in table cells
Re: vertical alignment in table cells
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.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: vertical alignment in table cells
Thank you. That's what I needed to know.
The <th> tag seems to control the vertical alignment for the header rows.
The <th> tag seems to control the vertical alignment for the header rows.