Omni Systems, Inc. Mif2Go User's Guide, Version 55
> 22 Setting up CSS for HTML > 22.4 Specifying CSS file and link options > 22.4.2 Specifying CSS options in a Mif2Go configuration file
To specify CSS options in a Mif2Go configuration file:
; UseCSS = Yes (default) or No
; WriteClassAttributes = Yes (default)
; or No (when ClassIsTag=Yes or when not using CSS)
; WriteCssStylesheet = Once (default), Always, or Never
; WriteCssLink = Yes (default) or No
; CssBrowserDetect= Macro reference to JavaScript code that determines
; browser type and writes link from HTML to appropriate CSS file
;CssBrowserDetect=<$BrowserCSS>
; CssFileName = name of style sheet to reference (file name, no path)
Use these options to do the following:
See also §Table 22
Note:
If you have been using [HtmlOptions]Stylesheet
to specify CSS file options, see §22.4.5 Understanding effects of the older Stylesheet setting.
The Stylesheet
setting is deprecated in favor
of the [CSS]
settings listed in this section.
To direct Mif2Go to use CSS for your output:
; UseCSS = Yes (default) or No
When UseCSS=Yes
, by
default Mif2Go does the following:
CssFileName
,
if this file is not already present
<head>
element of each output file to the CSS file designated by CssFileName
.
When UseCSS=No
, paragraph
tags do not include class attributes, no CSS file is referenced in the
output, and the remaining [CSS]
options are
ignored.
See also §22.5 Understanding how CSS affects other options.
WriteClassAttributes
values have the following effects:
Mif2Go includes CSS class attributes in the paragraph tags in your output; see §22.3 Understanding how Mif2Go generates CSS. |
|
Class attributes are not included in paragraph
tags. Use this setting for XML output when |
CssFileName
designates
the CSS file Mif2Go optionally creates and references. The default
is local.css
, located in the project directory.
You can specify a different name and location for this file; see §22.4.3 Designating and locating a CSS file.
WriteCssStylesheet
values have the following effects:
Mif2Go creates a new CSS file based on your FrameMaker
formats, but only if no CSS file of the name designated by |
|
Mif2Go creates a new CSS file based on your FrameMaker
formats, overwriting in the project directory any existing CSS file of
the name designated by |
|
Mif2Go does not create a new CSS file, nor overwrite
an existing file. When |
WriteCssLink
values
have the following effects:
If <link rel="stylesheet" href="local.css" type="text/css"> <?xml:stylesheet href="local.css" type="text/css" charset="UTF-8"?> If |
|
Mif2Go does not create a link to a CSS file. Use this
setting when you are not using CSS, or when you provide your own macro
in |
When a macro is assigned to CssBrowserDetect
,
if WriteCssLink=Yes
, the macro is included
in the <head>
element. If WriteCssLink=No
,
the macro is ignored. See §22.6.1 Selecting a CSS file at run time.