Docs Home

sb.css.styleTag

@File: /surebert/css/styleTag.js

@Description: Used to create a css style tag on the fly. You can pass it an existing style tag if you would like to manipulate that one.


@Param: Object styleTag An already existing style tag node - optional
@Example:

var css = new sb.css.styleTag();
css.write('body{border:10px solid red;}');
css.clear();
css.write('body{border:10px solid yellow;}');
css.replace('body', '#main');
css.hide();
css.toggle();