Browse Source

Fix broken link, formatting on px style tip

main
Paul O’Shannessy 11 years ago
parent
commit
c98bb39b26
  1. 16
      tips/06-style-props-value-px.md

16
tips/06-style-props-value-px.md

@ -16,14 +16,14 @@ var divStyle = {height: 10}; // rendered as "height:10px"
React.renderComponent(<div style={divStyle}>Hello World!</div>, mountNode); React.renderComponent(<div style={divStyle}>Hello World!</div>, mountNode);
``` ```
See [Inline Styles](/react/docs/tips/inline-styles-tip.html) for more info. See [Inline Styles](/react/tips/inline-styles.html) for more info.
Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix: Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
- fillOpacity - `fillOpacity`
- fontWeight - `fontWeight`
- lineHeight - `lineHeight`
- opacity - `opacity`
- orphans - `orphans`
- zIndex - `zIndex`
- zoom - `zoom`

Loading…
Cancel
Save