Skip to main content
September 21, 2010
Question

Table Cell Alignment centers content even though set to Top

  • September 21, 2010
  • 2 replies
  • 6306 views

I found another topic on this posted in May http://forums.adobe.com/message/1976717#1976717

I am working in RH 8 and generating WebHelp

I have a lot of tables in various topics in my project.

Up until yesterday, the tables were working fine.

Yesterday, the table alignment for new tables started acting odd.

They all vertically align content in tables to the center even though the alignment is set for top.

This happens for tables in new topics and if I add a table into an existing topic (where table content is aligned correctly).

The response on the linked posting above was that it is a bug in RH 8 and does not affect the compiled help.

In my project, the source view looks fine (aligned to TOP), but when displayed in the Preview Topic view the alignment is center.

So, after seeing the post above, I generated the help and the vertical alignment still shows centered in compiled WebHelp.

I also generated HTML help to see if this is a WebHelp issue and the vertical alignment still shows centered in compiled HTML help.

I copied one of the tables from a prior topic that is aligned correctly into one of my new topics from yesterday and the alignment is fine for that table.

I checked the Header code in HTML and there is no table related code.

I checked the HTML code for the table and it has vertical-align: top.

Does anyone have any other thoughts on how to research this problem or what the actual problem is?

As a workaround right now, I am copying an existing table from an existing topic that is aligned correctly and so far it is working.

As always - thanks for any assistance.

Michael F Weart

This topic has been closed for replies.

2 replies

imagineimage1
Known Participant
April 4, 2012

It would appear that this issue is not resolvable unless the align code is placed in each cell of each table.  I will attempt a new project and see if that is true.

Creating a new project with the default table resulted in it working for align to top but the align to top button in the RH interface placed the code in each cell that was selected with the cursor then I clicked the toolbar selection for align top; this inserted the code in each cell.

Correction.  The align top button appears to be malfunctioning and is NOT placing the code at all, even in new tables.

After looking at the code then flipping back to preview then clicking the button after selecting cells, I expect to see the code inserted and this is not happening.

Willam van Weelden
Inspiring
April 4, 2012

Hi,

There must be some code in the way in your project. I've tried new project, inserted a table, selected the table and set the vertical alignment to top. Worked without fault. Can you share an example project where you encounter this problem so I can have a look at what goes wrong?

You can set specific columns to vertical alignment in your css directly, but it's kind of messy (using + selector) or uses CSS3 (:nth-child) that IE8 and below doesn't get. A better solution: Look in the style editor in 'Repeatable columns'. If you define enough columns for your table, you should be able to get exactly what you want. You can set specific format for any number of colums. Just add styling for the columns with the special makeup.

Greet,

Willam

imagineimage1
Known Participant
April 4, 2012

Agree; resolved.  After editing CSS outside RH for adding that line to the code of all the table styles I could find in the css, situation seems to have resolved itself but it appears to have nothing to do with where the code was added.  E.g., once the code was added the button started working properly, or, there was some other glitch in the system because as I clicked the align top button and went back to look at the code, the html code did NOT change as I clicked the button.  Then, it did.  Makes no sense but the fact is it IS working now.

MergeThis
Inspiring
September 21, 2010

It's likely that there's a character or paragraph style associated with the text that is overriding (or ignoring) the table cell settings. These styles could be in your style sheet or in the topic.

Good luck,

Leon

September 21, 2010

There were no "rogue" HTML code or formatting issues, but...

I noticed that when I click the option to Insert Table, there was a TableSetupTest table style that appeared in my Available Table Styles. I do not remember defining one, but it was there. I accessed Format->Styles and selected Table Styles and deleted the TableSetupTest and the problem was solved.

I was not selecting that table style when I did the Table->Insert Table - I was selecting the (default) style in the Available Table Style list.

Not sure what happened or why there was a table style (I must have set this up at some point) but removing that table style eliminated the problem and now the vertical alignment works as it should.

Thanks --

Michael F Weart

September 28, 2010

It is happening again - even when I copy a table setup that is working correctly. I can see no formatting overrides that would cause this problem, but maybe I am not really seeing the formatting that may be in place to override.

What type of paragraph or character formatting I would find in the HTML code?


Thanks --

Michael F Weart