Dustin Diaz: ./with Imagination. CSS Centering: Auto-width Margins. This box is horizontally centered by setting its right and left margin widths to "auto".
This is the preferred way to accomplish horizontal centering with CSS, and works very well in most browsers with CSS2 support. Unfortunately, IE5/Win does not respond to this method - a shortcoming of that browser, not the technique. Semantic approach in naming convention. 9 Top CSS Essential Skills That Every Web designer Should Learn.