MooCss - a MooTools Css Stylesheet Writer

This element is styled by Javascript

When you click anywhere, the CSS of body will change.

You can create a new class .example and set it's css. Afther that you can add new Elements to the DOM with this class, without aplying the styles to the element itself.

var style = new MooCss()
	.setStyle(new MooCssStyle('.example',{
		background: '#FF9900',
		color: 'white',
		padding: 20
new Element('div',{'class': 'example'});

Generated CSS


Check the docs on


MooTools Forge