Issues with centering a wordpress site.

Discussion in 'PHP' started by ZacharyW, Jun 23, 2009.

  1. #1
    I have been using one of the themes for WP called "PureType", and I have removed the ads off of the page that made it look "centered", however after removing the ads the page does not look right. I have looked all through the stylesheet and have modified many things but I cannot get the entire page to center, any help would be greatly appreciated.

    Page: http://hostingreviewsbase.com
     
    ZacharyW, Jun 23, 2009 IP
  2. emed

    emed Peon

    Messages:
    70
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    search this on your stylesheet:
    wp-content/themes/PureType/style-Blue.css
    #wrapper2 {style-Blue.css (línea 46)
    margin:35px auto auto;
    padding:0;
    width:[b]950[/b]px;
    }
    Code (markup):
    just change 950 to 700
     
    emed, Jun 24, 2009 IP
  3. ZacharyW

    ZacharyW Peon

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, didn't realize this was a stylesheet issue, was my mistake, bigroddy has been helping me via pm's, thanks for all your help :)
     
    ZacharyW, Jun 24, 2009 IP
  4. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #4
    A good rule of thumb for centering is creating a center div that has a margin set to half of the div's size.

    example:
    #center {
    width: 700px;
    margin: 0px, 0px, 0px, -350px;
    }

    Then you create a content div inside of the center div...
     
    dweebsonduty, Jun 27, 2009 IP