|> Home > Documentation > Latest documentation > Interchange tags > css|
Builds a CSS file and outputs a link to the file.
Tag usage example
If the target CSS file cannot be written, for whatever reason, then the CSS will be output to the page, inside a <style type="text/css"> block, instead.
The name of the CSS file that will be created by Interchange, updated as required and served website visitors. The filename will be forced to lowercase and a .css suffix will be appended.
This file's modification time will be checked against the output CSS file. The output file will be rebuilt if it is older than this file. This is intended for use where the Variable, specified using the name parameter, has been set up using the DirConfig parameter.
Specify the CSS file's location.
Set the CSS media type, such as PRINT, SCREEN, AURAL and HANDHELD etc.
Permissions to use when creating the CSS file.
If this parameter is set true then this tag will copy the directory hierarchy in the output_dir directory.
For instance, if you set this to "foo/bar/index.html" then this tag would would output the CSS file to "images/foo/bar/mycss.css". That is assuming that the imagedir parameter, and/or the ImageDir configuration directive is set to "images".
Used for regenerating the CSS file on a timed basis. You can specify a number of minutes here, or can use any time interval, such as "1 hour".