-
1. Re: TCS3: Autofit tables to content
Jeff_Coatsworth Mar 31, 2014 9:40 AM (in response to pr_csc)Can you show us an example of what’s not working? Use the camera icon in the web interface to add screenshots.
-
2. Re: TCS3: Autofit tables to content
pr_csc Apr 1, 2014 2:55 AM (in response to Jeff_Coatsworth)As a test I created several tables in FrameMaker and then linked it to RoboHelp - The RoboHelp WebHelp output is shown below:
When the browser window is resized, as shown below, the table text does not wrap:
In RoboHelp I could select each table individually and choose Table > AutoFit > AutoFit to Contents but this would be impractical as there are many instances, plus I would need to repeat the process each time the Framemaker document is updated.
Thanks
-
3. Re: TCS3: Autofit tables to content
Jeff_Coatsworth Apr 1, 2014 5:52 AM (in response to pr_csc)2 questions – (1) what happens when you create HTML5 output? Does it resize then? And (2) how are your Conversion Settings mapping the table in FM to a RH table style?
-
4. Re: TCS3: Autofit tables to content
pr_csc Apr 1, 2014 6:21 AM (in response to Jeff_Coatsworth)1. The same thing happens when I create HTML Help (i.e. it does not resize).
2. In FrameMaker the tables have the Table Tag of 'Format B' and the text in the table has the CellBody Paragraph Tag. When I access the Project Settings in RoboHelp and edit the conversion settings, the mapping for this table is as shown below:

-
5. Re: TCS3: Autofit tables to content
Jeff_Coatsworth Apr 1, 2014 6:29 AM (in response to pr_csc)HTML help is a .chm in my books – I was talking about Multi-Screen HTML5 or Responsive HTML5 content depending on your RH version.
You may want to experiment with changing the mapping from “Source” to one of your “resizable” RH table styles and see how that behaves.
-
6. Re: TCS3: Autofit tables to content
pr_csc Apr 3, 2014 7:21 AM (in response to Jeff_Coatsworth)Success...
I did what you said and tried mapping to a RH table style & finally got it to work by:
1. In the css I added the following line into the definitition of the table being mapped to:
width: 100% ! important ;
2. In the Framemaker document I fixed the widths of the two columns in the table to 2cm and 10cm respectively.
Thanks Jeff for your help
-
7. Re: TCS3: Autofit tables to content
Sreekanth_S Apr 15, 2014 10:27 PM (in response to pr_csc)Hi
I am facing a similar issue. When I added the width: 100% in the CSS it still doesn't autofit. Can you please share a screeshot of the relevant section in the CSS?
Sreekanth
-
-
9. Re: TCS3: Autofit tables to content
Sreekanth_S Apr 16, 2014 1:59 AM (in response to pr_csc)Hi
Thanks a ton for that. I mistook "! important" in your reply was to highlight the code's importance and skipped that. I added that and it works perfectly now.
With my limited knowledge of CSS, I would not have figured out that adding !important will make a difference.
Sreekanth





