I'm using Adobe Technical Communication Suite 3.5 (FrameMaker 10, RoboHelp 9).
I'm importing FrameMaker books into RoboHelp HTML (via File > New > Project > Import). Unfortunately, the tables in the book end up as HTML tables that use a lot of inline styles (style attributes on individual elements), which I'm finding difficult to override with CSS.
Is it possible to import FrameMaker books so that inline styles are never used?
I've mapped the table to a CSS style of "mytable". I get the following HTML.
<table class="mystyle" cellspacing="0" width="454">
<tr style="height: 19.50pt;">
<td style="vertical-align: top; padding-left: 6.00pt; padding-top: 3.00pt;
padding-right: 6.00pt; padding-bottom: 3.00pt;" width="101"><p
class="FM_TableHeading">Col1</p></td>
<td style="vertical-align: top; padding-left: 6.00pt; padding-top: 3.00pt;
padding-right: 6.00pt; padding-bottom: 3.00pt;" width="101"><p
class="FM_TableHeading">Col2</p></td>
etc.
I want to get rid of the style attributes on the tr and td elements as well as the table element.
If I leave the table mapping as [source] I get a lot more inline styles.
<table style="padding-left: 6.00pt; padding-top: 7.50pt; padding-right: 3.00pt;
padding-bottom: 3.50pt; margin-left: 34.02pt;" cellspacing="0"
width="454">
<tr style="height: 19.50pt;" bgcolor="#D9D9D9">
<th style="border-bottom: solid 1px #ffffff; vertical-align: top;
padding-left: 6.00pt; padding-top: 3.00pt; padding-right: 6.00pt;
padding-bottom: 3.00pt;" bgcolor="#D9D9D9" width="101"><p
class="FM_TableHeading">Col1</p></th>
<th style="border-bottom: solid 1px #ffffff; vertical-align: top;
padding-left: 6.00pt; padding-top: 3.00pt; padding-right: 6.00pt;
padding-bottom: 3.00pt;" bgcolor="#D9D9D9" width="101"><p
class="FM_TableHeading">Col2</p></th>
OK, I selected the table, then Table > Format > Custom Ruling and Shading... All Checkboxes were select, all dropdowns set to From Table. I clicked Apply.
Then I imported the FrameMaker book into RoboHelp as described in the first post. I'm still getting inline styles on the tr and td elements.
Try giving Adobe Support a call - they might have some suggestions. I've never really looked at how my tables have come across in my TCS 3 imported projects with respect to the css/html. They looked fine when I imported them & haven't had any reason to change them in RH (yet).
North America
Europe, Middle East and Africa
Asia Pacific