Treehouse: Grow your CSS skills. Land your dream job.

Centering the main wrapper

  • # June 20, 2012 at 3:15 am

    I’m duplicating a WordPress site from an existing Drupal site. The Drupal designer did not use margin:0 auto like I’m used to on the page-wrapper. He used

    left: 50%;
    margin-left: -495px;
    min-height: 500px;
    position: relative;
    width: 990px;

    Here is my version:
    I tried this on the page id and it’s working out. What I noticed on the Drupal site is that it looks better on the iPhone

    Any advice on the best way to center this website?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.