Copy link to clipboard
Copied
TCS1
RH7
FM8
Windows XP
Dreamweaver 8
I am wrestling (unsuccessfully) with trying to get cell body text to align to the top of a table cell. I have been reading in all of the forums that it is possible to do this in the .css by doing it in the table style. However, I don't have a table style. I have cellheading and cellbody, but no table style. When I copy my FM book by reference into RH, my tables come through beautifully and only required a few minor tweaks to the cellbody text.
However, I don't seem to be able to get the text to align to the top of the table cell. Instead, as the text in the cell body grows so do the top and bottom margins.
Here are my questions:
1. Do I need to have a table style to make table text align to the top of a cell body? 2. If so, can someone give me the code that I need to use in the stylesheet to make it happen?
2. Will the table style override the cellbody and cellheading styles? If so, do I need to incorporate those into the table style?
As always, thanks for everyone's assistance.
Copy link to clipboard
Copied
You could try adding the following to your .css file:
td {vertical-align: top;}
This should affect the alignment of text in all table cells, regardless of whether you have a table style defined. It should not affect any other formatting that you have applied to the text in the table.
Copy link to clipboard
Copied
Thanks for the suggestion. I'll try it the next time I'm back in RH.