Hello,

Using JQuery, for a given item, you can remove all CSS classes in one single
shot:

$("#item").removeClass();


*Note*: See
http://stackoverflow.com/questions/1424981/how-to-remove-all-css-classess-using-jquery

Using JQuery, you can select all children of a given element;

http://api.jquery.com/find/

Therefore, considering a given element, you can remove all CSS to this
element, and to all its children:

$("#item").removeClass(); // For the element itself.
$("#item").find().removeClass(); // For all its children.

It did not test the second line, but it should work.

A+








2011/3/29 johnw <[email protected]>

> Denis, I could just do that via a static stylesheet vs. using jQuery, but I
> didn't want to override every css element that Blueprint sets up, which is
> what I would have to do:
> #mypreview { margin:0, padding:0, etc... }
> which is the same as:
> $("#mypreview").css('margin","0px").css("padding","0px").css...
>
> I just want to wipe out any styles in one shot without doing individual
> settings back to zero, none. etc.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Blueprint CSS" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/blueprintcss?hl=en.

Reply via email to