Browse Source

Added backgroundImage example to "inline styles" cookbook entry

main
Connor McSheffrey 11 years ago
parent
commit
235101f457
  1. 2
      cookbook/cb-02-inline-styles tip.md
  2. 2
      cookbook/cb-02-inline-styles.md

2
cookbook/cb-02-inline-styles tip.md

@ -12,7 +12,7 @@ In React, inline styles are not specified as a string, but as an object whose ke
var divStyle = {
color: 'white',
backgroundColor: 'lightblue',
backgroundImage: 'url(' + imgUrl + ')',
WebkitTransition: 'all' // note the capital 'W' here
};

2
cookbook/cb-02-inline-styles.md

@ -16,7 +16,7 @@ Instead of writing a string, create an object whose key is the camelCased versio
var divStyle = {
color: 'white',
backgroundColor: 'lightblue',
backgroundImage: 'url(' + imgUrl + ')',
WebkitTransition: 'all' // note the capital 'W' here
};

Loading…
Cancel
Save