These methods get and set CSS-related properties of elements.
Get the value of a style property for the first element in the set of matched elements.
.css() method is a convenient way to get a style property from the first matched element, especially in light of the different ways browsers access most of those properties (the
getComputedStyle() method in standards-based browsers versus the
runtimeStyle properties in Internet Explorer) and the different terms browsers use for certain properties. For example, Internet Explorer's DOM implementation refers to the
float property as
styleFloat, while W3C standards-compliant browsers refer to it as
.css() method accounts for such differences, producing the same result no matter which term we use. For example, an element that is floated left will return the...