Guest User

Untitled

a guest
Jan 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #parent{
  2. margin:0 auto;
  3. width: 960px;
  4. }
  5. <div id="parent">
  6. <!--more code goes here-->
  7. </div>
  8.  
  9. body {
  10. text-align: center; /* this helps some browsers align the #parent element */
  11. }
  12.  
  13. #parent{
  14. margin:0 auto;
  15. width: 960px; /* a fixed width is mandatory for margin auto to work */
  16. text-align: left; /* this resets the contents alignment */
  17. }
Add Comment
Please, Sign In to add comment