Posted By

msstar on 04/09/13


Tagged

css


Versions (?)

CSS


 / Published in: CSS
 

CSS

  1. -- specify a width for the element and then set margin to 0 auto to centralise the element
  2. width: 80%
  3. margin: 0 auto
  4. (margin: top right bottom left)
  5.  
  6. -- styling across all browsers
  7. html, body{
  8. margin: 0;
  9. padding: 0;
  10. border: 0;
  11. }

Report this snippet  

You need to login to post a comment.