Using this script to make a style object of all the inherited etc styles.
var style = css($(this)); alert (style.width); alert (style.text-align);
To directly answer the question: style['text-align'] is how you would reference a property with a hyphen in it. But style.textAlign (or style['textAlign']) is what should be used in this case.
style['text-align']
style.textAlign
style['textAlign']