Apply CSS class in stylesheet

css

Solution

Is there a way to apply a class to a set of nodes matching a CSS selector, inside the actual stylesheet?

Nope, there's currently no way of doing that with standards compliant CSS.

Problem

Is there a way to apply a class to a set of nodes matching a CSS selector, inside the actual stylesheet? This is of course possible in a single line of jquery, but is it possible to do in the css itself? ``` input[type='button'] { // apply the class 'k-button' to these } ```

Original source