title: How to horizontally center a floating element of a variable width?
body: <p>How to horizontally center a floating element of a variable width?</p>
  
  <p>Edit: I already have this working using a containing <code>div</code> for the floating element and specifying a <code>width</code> for the container (then use <code>margin: 0 auto;</code> for the container). I just wanted to know whether it can be done without using a containing element or at least without having to specify a <code>width</code> for the containing element.</p>