Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

jQuery.CssRule


Average rating
(2 votes)

A easy way to create CSS rules without using .css or tag

Simple use, a better interpreter has been created.

Would you like to manipulate CSS like this?

$.cssRule({
  "body": [
    ["background-color", "#fff"],
    "font-family:verdana",
    "font-size:10px",
    "padding, margin: 0px"
  ],
  "h1": [
    "font-size:17px;color:#009",
    {
      "a": "color:#ff0"
    }
  ],
  "a, a:visited": [
    ["color:#00f"]
  ],
  "a:hover": [
    ["color", "#009"]
  ]
});

Or something around this example below?

var cssRuleText = " \
    body { font-size: 16px; } \
    * html body { font-size: 100%; } \
    body * { font-size: 87.5%; font-family: Verdana, Helvetica, Arial, sans-serif; } \
    body * * { font-size: 100%; } \
    h1 { margin: 1em 0 1.5em; font-size: 18px; } \
    h2 { margin: 2em 0 1.5em; font-size: 16px; } \
    p { margin: 0; } \
    pre, pre+p, p+p { margin: 1em 0 0; } \
    code { font-family: \"Courier New\", Courier, monospace; } \
  ";
  $.tocssRule(cssRuleText);

Very good uhm? think about using that with $.getScript() from jQuery?
Great possibilities you will get using this plugin.

More about the plugin on:
http://gsaraiva.projects.pro.br/

Plugins page:
http://gsaraiva.projects.pro.br/?page_id=17

Releases

Official releasesDateSizeLinksStatus
1.1.8-20082008-May-30n/aRecommended for 1.0.xThis is currently the recommended release for 1.0.x.
1.1.9-20082008-May-30n/aRecommended for 1.2.xThis is currently the recommended release for 1.2.x.