Given a fairly short string of \[code\]H1\[/code\]-styled text, I would like to conditionally set the \[code\]text alignment\[/code\] property based on whether the text spans beyond a single line.If the string only takes up a single line, I want to set the property to \[code\]center\[/code\]. If more than one (given the string, it shouldn't ever take more than two lines), I'd like the first line aligned left; the second, right.I'm already using jQuery 1.9.1 in this project so that's available solution in addition to CSS.