7. Centre aligning a block element
This tip seems almost precisely correct. The only improvement I might suggest is to use individual properties for 'auto' instead of the 'margin' shorthand. I have a vague recollection of a few browsers having problems (ignoring?) the
margin: 0 auto;
shorthand, whereas they worked fine with themargin-left:auto; margin-right:auto;
longhand equivalent. If someone knows of the specific browser(s) that have this problem, please link to this post and point them out. Thanks.
via tantek.com