In FF3 you can:
<div style="display: table; margin: 0px auto 0 auto;">test<br>test</div>
This has the advantage that any element makes the most sense (replace the div with something better if necessary), but the drawback that it fails in IE (grr ...)
In addition, without setting the width, it is best to use javascript to accurately position the left edge. I'm not sure if you would classify this as a "bizarre trick."
It really depends on what you want to do, of course. Given your simple test case, a div with text-align: center will have exactly the same effect.
Bobby jack
source share