x
Syntax: How to Use the CSSURL Attribute to Link to an External CSS
To link an external Cascading Style
Sheet (CSS) to report using a WebFOCUS StyleSheet attribute, use
the following syntax
[TYPE=REPORT,] CSSURL=css_url, $
where:
- TYPE=REPORT
Specifies that this attribute is
being applied to the entire report. If it is omitted, the StyleSheet
declaration defaults to it.
- css_url
Is the URL of the external Cascading
Style Sheet. If the external CSS resides on a Web server platform
that is case-sensitive, you must specify it using the correct case.
The URL can be up to 255 characters.
If your external Cascading Style Sheet URL exceeds this limit, you
can shorten the URL by defining an alias (also known as a virtual directory)
on the Web server to represent part of the path.
You can specify
an absolute or relative URL. If it is relative, the external CSS
must reside on the Web server used by WebFOCUS.
For
an example, see Linking to an External Cascading Style Sheet Using the CSSURL Attribute.
Example: Linking to an External Cascading Style Sheet Using the CSSURL Attribute
This report displays the products currently
offered by Gotham Grinds. It is formatted using an external Cascading
Style Sheet (CSS), and links to the CSS using the CSSURL attribute
in the WebFOCUS StyleSheet:
TABLE FILE GGPRODS
HEADING
"</1 Current Products</1"
PRINT PRODUCT_DESCRIPTION UNIT_PRICE
BY PRODUCT_ID
ON TABLE SET PAGE-NUM OFF
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET STYLESHEET *
TYPE=REPORT, CSSURL=http://websrv2/css/report01.css, $
TYPE=HEADING, CLASS=headText, $
TYPE=TITLE, CLASS=reportTitles, $
TYPE=DATA, CLASS=lowCost, WHEN=N3 LT 27, $
ENDSTYLE
END
The request produces this
report: