CSS Stylesheet

From HTML5 Builder
Jump to: navigation, search

A CSS Stylesheet is a plain text file with CSS code. You can create a new one from Home > New > Other Projects > Other Files > CSS Stylesheet.

Usage

Inclusion

The purpose of a CSS stylesheet is to be applied to a document, usually a webpage.

To include a CSS file on an HTML page, add a link element to the head section:

<link rel="stylesheet" type="text/css" href="path/to/the/stylesheet.css" />

For HTML5 Builder pages (server page, server mobile page, client page and client mobile page), use the StyleSheet component. Alternatively, on the server pages (web and mobile), you can print the link element used in HTML pages from the OnShowHeader server-side event.

See Also