Skip to main content
Inspiring
January 7, 2016
Question

Basic CSS question from FM 12 unstructured

  • January 7, 2016
  • 1 reply
  • 429 views

Hi,

FM12 all patched, unstructured, save as HTML. Why is FM 12 outputting the following in the CSS?

H1.Heading2, H2.Heading2, H3.Heading2, H4.Heading2, H5.Heading2, H6.Heading2

For my Heading2 style, it creates classes for H1, H2, H3 .... This happens for other styles, too. Why? Heading2 would only be H2. Similarly Heading1 would only be H1. Can I clean this up to just be,
H2.Heading2 and delete the rest?

Cheers,

Sean

This topic has been closed for replies.

1 reply

Legend
January 15, 2016

Have you found a solution? If not: Check the reference page of the fm document.

But first: FM Outputs an element and adds a class to this element. The class attribute is based on the Paragraph Style name). This makes it possible to map e.g. multiple paragraphs with different paragraph styles to one and the same element and still being able to differentiate between them.

If you do not use H* (Heading (Auto Level)), but this:

HTML Mapping Table
FrameMaker Source ItemXML ItemInclude Auto#Comments
ElementNew Web Page
P:Heading1_TopOfPageh1YN

P:Heading1

h1NN
P:Heading2h2NN
P:BodypNN

This should result in:

<h1 class="Heading1_TopOfPage">foo</h1>

<h1 class="Heading1">foo</h1>

<h2 class="Heading2">foo</h2>

The CSS should be something like this:

h1.Heading1_TopOfPage {

…;

}

h1.Heading1 {

…;

}

h2.Heading2 {

…;

}

p.Body {

…;

}

With "Heading (Auto Level)":

FrameMaker Source ItemXML ItemInclude Auto#Comments
ElementNew Web Page
P:Heading1_TopOfPageH*YN

P:Heading1

H*NN
P:Heading2H*NN
P:BodypNN

The result will be like what you described.