Center a website horizontally

/ Published in: CSS
Save to your folder(s)

Usually a website is centered horizontally. To achieve this you need the following CSS.

Copy this code and paste it in your HTML
  1. .wrapper {
  2. width:960px;
  3. margin:0 auto;
  4. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.