vertical alignment in table cells

This forum is for all Flare issues related to styles, stylesheets and XML.

vertical alignment in table cells

Postby bonnie on Fri May 30, 2008 5:52 pm

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
bonnie
Sr. Propeller Head
 
Posts: 158
Joined: Wed May 14, 2008 4:00 pm

Re: vertical alignment in table cells

Postby LTinker68 on Sat May 31, 2008 2:53 pm

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.
LTinker68
Master Propellus Maximus
 
Posts: 7245
Joined: Thu Feb 16, 2006 9:38 pm

Re: vertical alignment in table cells

Postby bonnie on Mon Jun 02, 2008 5:11 pm

Thank you. That's what I needed to know.
The <th> tag seems to control the vertical alignment for the header rows.
bonnie
Sr. Propeller Head
 
Posts: 158
Joined: Wed May 14, 2008 4:00 pm


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 9 guests