I’ve seen (and used) a lot of examples of centering absolute positioning by using this method:
position: absolute;
left: 50%;
margin-left: -100px; (half the element width))
width: 100%;
the obvious problem is in knowing the width of the element, which won’t work for dynamic-width elements.
Recently, I started playing with using -33% left margin instead and this seems to center pretty well. Has anybody else tried this and/or see a problem with it?