Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #parent{
- margin:0 auto;
- width: 960px;
- }
- <div id="parent">
- <!--more code goes here-->
- </div>
- body {
- text-align: center; /* this helps some browsers align the #parent element */
- }
- #parent{
- margin:0 auto;
- width: 960px; /* a fixed width is mandatory for margin auto to work */
- text-align: left; /* this resets the contents alignment */
- }
Add Comment
Please, Sign In to add comment