CSS

Utility functions for CSS/StyleSheet files access

Authors

Summary
Utility functions for CSS/StyleSheet files access
Fix transparency of PNG background of document stylesheets.

Functions

fixPNG

Fix transparency of PNG background of document stylesheets.  (only on IE version<7, otherwise does nothing)

Warning: All png background will not work as IE filter use for handling transparency in PNG is not compatible with all background.  It does not support top/left position (so no CSS sprite)

I recommend to create a special CSS file with png that needs to be fixed and call CSS.fixPNG on this CSS

Examples

CSS.fixPNG() // To fix all css

CSS.fixPNG("mac_shadow.css") // to fix all css files with mac_shadow.css so mainly only on file

CSS.fixPNG("shadow", "vista"); // To fix all css files with shadow or vista in their names

Parameters patterns: (optional) list of pattern to filter css files