--- id: style-prop-value-px title: Shorthand for Specifying Pixel Values in style props layout: cookbook permalink: style-props-value-px.html prev: jsx-root-node-count.html next: children-props-type.html --- When specifying a pixel value for your inline `style` prop, React automatically appends the string "px" for you after your number value, so this works: ```js /** @jsx React.DOM */ var divStyle = {height: 10}; // rendered as "height:10px" React.renderComponent(