Horizontal centering with CSS
One of the most frustrating aspects of CSS, besides Internet Explorer, is horizontal centering. If you’ve ever had to center elements in your web applications, you may have run into problems, especially if they were dynamic-width elements.
Centering with CSS really doesn’t have to be difficult, although I’m sure it seems like it sometimes. We’ve written up a handy little guide which explains in detail how to center both fixed-width and dynamic-width elements in CSS. You can read about it in our forums.>>