What Are Cascading Style Sheets?

In this section:

The World Wide Web Consortium's (W3C) cascading style sheets (CSS) specification defines a simple language for adding styling (such as fonts, colors, and spacing) to HTML documents. A style sheet separates the structural content of a document, defined in HTML, from the styling instructions, which are specified in a CSS. Each style sheet consists of one or more instructions or rules, called statements. Each statement includes a selector that tells a browser which elements on a page are affected by that statement, and a declaration that tells the browser how to draw or render them.


Top of page

x
Benefits of Cascading Style Sheets

The benefits of using cascading style sheets to format reports include:


Top of page

x
The Notion of Browser Dependence

In preparing to use CSS, it is important to understand the pivotal role played by the Web browser. It is the browser's support and implementation of CSS, and not FOCUS, that determines how (or if) a style sheet formats a styled report. Some browsers support CSS specifications fully, while others support only certain versions or formatting attributes, and some offer no support at all. Make sure that your browser and your readers' browsers all support CSS before proceeding.


Top of page

x
Types of Cascading Style Sheets

When you create a HOLD file in HTML format, FOCUS generates most of the report output as an HTML table, placing each report item in a separate cell. Through the CSS feature, you can expedite the translation process and minimize the size of the generated HTML file by including an internal (or "embedded") CSS in your request.

You can employ several types of cascading style sheets with FOCUS:


Information Builders