Subject: [css-d] Tip: How to add a rule with script and use the Box Model Hack

From: robert.nyman at centus.com (Robert Nyman)
Date: Fri, 25 Apr 2003 13:11:04 +0200

To use the Box Model hack in script, you need to add an extra backslash,
since JavaScript interprets the first one for string escape purposes...

Example:

oStyleSheet.addRule("div.levelItem", "height:22px;");
oStyleSheet.addRule("div.levelItem", "he\\ight:20px;");

/Robert