22.3 Understanding how Mif2Go generates CSS
Mif2Go generates CSS based on the formats in your FrameMaker document. To get the precise display you want, you might find that you need to edit the resulting style sheet in a text editor or a CSS editor. Mif2Go excludes most font tags, and optionally excludes typographic tags, because those can override CSS. What you get is very clean HTML, with @class attributes.
Although the default is to create a new CSS each time you run a conversion, there is a setting you can specify to retain the CSS as is; see §22.4 Specifying CSS file and link options. That is what we usually advise people to do if they customize the CSS. The downside is that if you define new formats (classes, in HTML) for your document, Mif2Go cannot add them to the CSS; you have to do that yourself.
By default, the first time you convert a document to HTML or XML, or generate HTML-based Help, Mif2Go creates a style sheet for the output. After importing any conversion template (see §2.4 Importing formats from a conversion template), Mif2Go creates a new CSS file that contains all the catalogued paragraph and character format names from your FrameMaker document, based on the following:
• whatever CSS classes you assign to those formats in [ParaClasses] or [CharClasses]; see:
§22.7.2 Mapping paragraph formats to CSS classes
§22.7.3 Mapping character formats to tags or span classes
• whatever tags you set for those formats in [ParaTags] and [CharTags]; see:
§21.3.1 Assigning HTML tags and attributes to paragraph formats
§21.4 Mapping character formats.
Absent explicit CSS settings in [ParaClasses], [CharClasses], [ParaTags], or [CharTags], Mif2Go bases CSS class names on your FrameMaker format names, possibly reduced to fit CSS naming rules for class names; see §22.7.1 Understanding CSS class name restrictions.
CSS rendition is affected by mappings in the following sections:
[Fonts] (see §21.7.2 Remapping fonts)
[Colors] (see §21.9 Specifying text colors for HTML)
However, all other CSS properties come directly from FrameMaker paragraph and character catalogs. FrameMaker markers do not affect CSS entries.
See §22.7 Assigning CSS classes.
> 22 Setting up CSS for HTML > 22.3 Understanding how Mif2Go generates CSS