Add a CSS rule programatically