Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Vertical text alignment in table cells; no table style in .css

Explorer ,
Dec 03, 2010 Dec 03, 2010

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.

2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 28, 2011 Jan 28, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 28, 2011 Jan 28, 2011
LATEST

Thanks for the suggestion. I'll try it the next time I'm back in RH.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp