Published in: CSS
margin-left: auto; margin-right: auto; width: 400px;
Comments
Subscribe to comments
You need to login to post a comment.
CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.
indianocean on 06/04/07
2 people have marked this snippet as a favorite
Published in: CSS
margin-left: auto; margin-right: auto; width: 400px;
Subscribe to comments
You need to login to post a comment.
I don't think you need the "position" for this, and you can make it smaller by writing it like this: "margin:0 auto;width:400px;"
jonhenshaw, you are right with 'position', but I prefer to have a single statement per line ;-) Thanks