Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A jQuery plugin to get the applied CSS to a certain element, compared to another element
Latest commit 2310dcc @peol Removed redundant files
Failed to load latest commit information.
README.markdown Readme updated
jquery.computedstyle.js Real first commit



Computed Style uses the browsers native functions to grab CSS applied to a certain element (which you specify) and compares it against a identical element in the same hierarchy - This way you can work out what CSS that is applied to an element compared to another.

Consider this: we want to get all CSS properties for body > div#test1 that is NOT applied on body > div -- this is the default behaviour of jquery.computedstyle (read more under"Usage").

Note: It will contain browser-applied CSS, values that are changed automatically by the browser to the element. This is because it'll change indirectly when changing font-size etc., this is not really an issue since you apply something that the browser are already planning on doing anyway.


// Returns a object with CSS properties unique to this element
// compared to another DIV-element in the same hierarchy

// Returns CSS properties unique for #id-of-element compared
// to #id-of-another-element

//Works just like above, but you pass in a (DOM) element for
// comparison instead
Something went wrong with that request. Please try again.