CFSTYLESHEET

Intelligently manage CSS files by collecting multiple files together and on-the-fly optimizing them to reduce their size and readability. It will only include CSS files once per page request, even if they are specified multiple times in multiple tags throughout the page request.

Usage

<cfstylesheet>

Attributes

Attribute default required summary
SRC A comma-separated list or array of CSS files to manage. If omitted then use a closing tag, and place the CSS inside the tag
HREF Same as the SRC tag - there for drop-in speed
MEDIA ALL The media attribute for the underlying link tag
MINIMIZE true Flag to control whether the resulting CSS block is to be optimized removing all whitespace, comments and line breaks
OUTPUT INLINE Controls where the resulting CSS gets placed in the HTML file. Values are 'INLINE', 'HEAD' or 'BODY'. This lets you put the result in the HEAD of the page, or at the end of the page for faster loading
PATH current path The path for the link to be seen to be coming from