21.3 Understanding how Mif2Go generates CSS
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 [Classes]; see:
§21.7.2 Mapping paragraph formats to CSS classes
§21.7.3 Mapping character formats to tags or span classes
• whatever tags you set for those formats in [ParaStyles] and [CharStyles]; see:
§20.3.1 Assigning HTML tags and attributes to paragraph formats
§20.4.1 Assigning HTML tags and attributes to character formats.
Absent explicit CSS settings in [Classes], [ParaStyles], or [CharStyles], Mif2Go bases CSS class names on your FrameMaker format names, possibly reduced to fit CSS naming rules for class names; see §21.7.1 Working with CSS class name restrictions.
Although CSS rendition is affected by mappings in [Fonts] (see §20.6.2 Remapping fonts) and [Colors] (see §20.8 Specifying text colors), the rest of the CSS properties come directly from FrameMaker paragraph and character catalogs. FrameMaker markers do not affect CSS entries.
See §21.7 Assigning CSS classes.
> 21 Setting up CSS for HTML > 21.3 Understanding how Mif2Go generates CSS
