Prop Cssnumber
# jQuery.cssNumber Property
[ jQuery Properties](#)
## Definition and Usage
$.cssNumber refers to an object containing all CSS properties that can be used without units.
**Note:** Used with .css() to determine whether to append 'px' to unitless values.
By default, this object contains the following properties:
zIndex fontWeight opacity zoom lineHeight widows (added starting jQuery 1.6) orphans (added starting jQuery 1.6) fillOpacity (added starting jQuery 1.6.2) columnCount (added starting jQuery 1.9) order (added starting jQuery 1.10.2) flexGrow (added starting jQuery 1.11.1) flexShrink (added starting jQuery 1.11.1)
To prevent the .css() method from automatically adding the 'px' unit to specific CSS properties, you can add an additional property to the jQuery.cssNumber object.
jQuery.cssNumber.someCSSProp = true;
* * *
## Syntax
_$_.cssNumber
* * jQuery Properties](#)
YouTip