Skip to main content
Participant
June 16, 2017
Question

Table Header HTML Publish

  • June 16, 2017
  • 2 replies
  • 755 views

I am converting our Mif2go publishing process to FM2017. Mif2go has a configuration setting that allows you to use the "th" tag in order to identify the table header in the html. Is there a setting like this in FM?

Looking at the HTML source file, the header row class of "tr1" is also used for cellbody rows. I'm trying to put a background color on the header row. I appreciate any help that you can provide.

<div width="100%" align="left">
  <table border-spacing="0" dir="ltr" class="table0 ItemList" border-collapse="collapse">
   <caption dir="ltr" class="FM_ItemListTblTitle">Navigation Buttons Item List</caption>
   <tr class="tr1">
   <td class="td2">
   <p dir="ltr" class="FM_TBLHead">Item</p>
</td>
   <td class="td3">
   <p dir="ltr" class="FM_TBLHead">Description</p>
</td>
</tr>
   <tr class="tr1">
   <td class="td2">
   <p dir="ltr" class="FM_CellBodyBold">1</p>
</td>
   <td class="td3">
   <p dir="ltr" class="FM_CellBody">Go to the first page.</p>
</td>
</tr>
   <tr class="tr1">
   <td class="td2">
   <p dir="ltr" class="FM_CellBodyBold">2</p>
</td>
   <td class="td3">
   <p dir="ltr" class="FM_CellBody">Go to the previous page.</p>
</td>
    This topic has been closed for replies.

    2 replies

    Adobe Employee
    June 16, 2017

    Hi

    In FM, HTML publishing automatically creates TH tag if table has heading. If the table does not have heading, you can always modify your table to add heading row. If you just want special appearance for first row you can try some of the table templates like (TopRowAlternatingRows) in style mapping tab of publish settings it will apply special class like 't1st".  You can modify t1st CSS selector in CSS editor and update the CSS as shown in picture.

    Thanks

    Amit Jha

    AEngelsAuthor
    Participant
    June 16, 2017

    My problem is that even though I have designed the table with the heading, it is not assigning the TH tag. Therefore, I am getting inconsistent formatting for the table in the HTML because it looks like FM varies in its assignment of the TD classes. So if I define class td2 with the heading format in the CSS, it might be applied across multiple rows in the html.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    June 16, 2017

    I think something is messed up in your FM source content - can you give a screenshot of how it looks in FM with the insertion point in the table header & the bottom left corner of the FM screen visible?

    Jeff_Coatsworth
    Community Expert
    Community Expert
    June 16, 2017

    Table header in the HTML: why would you need to identify that?

    AEngelsAuthor
    Participant
    June 16, 2017

    I want to set separate formatting for the header…add a background that does not impact the cellbody cells.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    June 16, 2017

    Wouldn't that be controlled by the css applied to that FM_TBLHead style?