Skip to main content
Inspiring
September 19, 2013
Question

Set (and keep) Table Margins

  • September 19, 2013
  • 1 reply
  • 1583 views

I have TCS4.

I am linking a Framemaker book into Robohelp so everything keeps up-to-date. Mostly, it works fine.

But..

How do I apply a margin to a table in the CSS so that it stays? I want to put some space between all tables and what is around them (text, other tables, etc.) just to clean things up and make it easier to read. Padding moves the text within a cell. I need to shift the table itself as a unit.

I can make the change manually in RH by adjusting the table properties of each table, but with hundreds of tables to setup each time there is an update, it gets terribly time consuming. Table margins seems to be entirely missing from the CSS or Master Page config.

Where is it hiding? Can I set a margin for all tables of a type collectively? And have it survive Forced Updates? 

I even tried modifying the CSS file directly with mixed results.    margin-top: 10.000px;     and such.

Thanks.

This topic has been closed for replies.

1 reply

Matt-Tech Comm Tools
Community Expert
Community Expert
September 19, 2013

Are you mapping the table to a CSS style in the conversion options?

If not, modify your conversion to do so, then you can control the properties from the CSS table definition.

WARNING: You may find that formatting applied to the table in Fm still sneaks through as inline formatting in the Rh table. Remove formatting from the tables with the Custom Ruling and Shading dialog in Fm.

As always, endeavor to eliminate the class="FM_ string from your HTML by explicit mapping of the styles. If not, you'll never gain control over the formatting in Rh.

-Matt

Matt R. Sullivan
co-author Publishing Fundamentals: Unstructured FrameMaker 11

-Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
dcrouse10Author
Inspiring
September 19, 2013

I am using a CSS to run the conversion, but I do not see anywhere to configure margins for tables. The rest of the conversion is working, but there is just no option to set margins that I can find.

Where did they put it?

Matt-Tech Comm Tools
Community Expert
Community Expert
September 19, 2013

IIRC, you'll need to add the CSS code manually (I recommend adding it to the RHStyleMapping.css file, or the file you've defined as the default conversion CSS)

While you're in there, create a body element definition, and add  a font-family setting to set a default font for your project and help with the formatting (among other things) of numbered lists.

You can choose to edit the CSS directly in Rh (in HTML view?) or use another editor like NotePad or Dreamweaver to make the changes.

-Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant