View Full Version : css border property (shorthand?)

18 Feb 2012, 9:22 AM
The docs says a border property "can be a CSS style specification"

So I went here to get the syntax, and used the "shorthand all in one" notation.

But it didn't seem to work
// border: '1px solid black',

Where this did:
style: {borderColor:'#000000', borderStyle:'solid', borderWidth:'1px'},

Is it the shorthand that's not allowed, is my syntax bad, or what have I misunderstood?


18 Feb 2012, 5:10 PM
The wording of that line in the docs is a bit garbled. Ignore the text and just read the example. The border property only specifies the width of the border, not the color or style. When using multiple numbers they appear in the order 'TOP RIGHT BOTTOM LEFT', the same order used by CSS when working with similar quantities.