The Fluid Skinning System is a modular CSS framework: a group of CSS files with a specially designed structure and class-specific format. The modular format allows you to add, remove, and mix classes to get the desired effect.
With FSS and User Interface Options, you can:
The FSS offers:
In addition to making it easy to lay out your websites, FSS is designed to work with the Infusion (Floe) UI Options (2008-2009) component to allow users to personalize the display of content to their own individual needs. This empowers users with visual or mobility impairments, for example, to alter the colour schemes or layout, enabling them to access content that otherwise might be completely inaccessible to them.
The FSS is intended to be used as the basis for your website, extended and customized by your own styles. The short-version of how to use FSS is:
.cssfiles you want, in the right order, ahead of your own
A slightly longer version of how to use FSS is provided in the sections below. For more details on the specific classes available in the FSS, see the FSS Cheat Sheet page.
FSS includes several separate files, each providing particular functionality:
fss-reset-context.css: new in v1.4 normalize visual discrepancies between browsers. Optional, but recommended. (For earlier versions, use
globalfile will affect the entire page.
fss-reset-context.css: Changes are scoped to the
fss-base-context.css: new in v1.4 applies a default set of styles. Optional, but recommended, and work well when used with the
fss-resetfiles. (For earlier versions, use
globalfile will affect the entire page.
fss-base-context.css: Changes are scoped to the
fss-layout.css: contains classes for defining margins, paddings, positions, etc., as well as classes useful for laying pages out with columns, etc.
fss-text.css: includes classes for setting font size, font family, line height, etc.
fss-theme-<themeName>.css: new in v1.1 contains classes defining sets of colors, background colors, etc.
File Order is Critical
The order of the files in your document is important: FSS stylesheets should be included before any Infusion component stylesheets, and in the order described above. Any custom stylesheets should be included last.
Your declaration of FSS files should look somewhat like the following:
The above example uses all the different FSS CSS functions. If you have no use for one of the files, you do not need to include it.
Note also that you should always put any FSS class names at the beginning of the class attribute in your HTML declarations, before any of your custom classes. For example:
While the FSS classes are generally well thought-out and pretty comprehensive, it is likely that you will want to customize your site by overriding some of the styles. This is how we expect the FSS to be used.
There are generally two ways of overriding predefined styles:
In all cases, you should override FSS classes in your own custom stylesheet. Do not modify the original FSS files.
Overriding an entire class doesn't mean that you have to change all of the properties specified. To override
fl-para, you can copy and paste the code into your imported or embedded style sheet and modify it however you like. Here's an example:
fl-para by overriding the
font-size. Whatever is left out (
text-align in this example) is inherited from the original
fl-para; so the text remains aligned to the left.
If this override is pasted into an imported style sheet, please note that the code for importing that style sheet would have to come after the code for importing the original (see Order of overrides #4).
In some cases, you may only wish to override an FSS style for one element that the class is applied to. This can be accomplished by using a selector that is specific to only that element, for example by adding a class name, or using other specifics.
In this example, the custom stylesheet overrides the default margins for only the first column of the three-column layout.
The FSS defines many variations of a given style - for example, it defines several widths for use with fixed-width columns. But it is likely that someone will want a width (or font size, or anything else) that is not specifically defined in the FSS files. In these cases, you are encouraged to copy the style, rename it and customize it to your specific needs.