Center Align Page in Explorer

Discussion in 'WordPress' started by netgo, Nov 7, 2010.

  1. #1
    I have a wordpress page set up that appears centered and fine in firefox, but is aligned to the left in explorer 8 - how can I fix this?
     
    netgo, Nov 7, 2010 IP
  2. Plato

    Plato Active Member

    Messages:
    202
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #2
    Its likely a problem with your template and its cross browser compatability. The fix is to check out your style.css, namely for the header or body (depending on your template).

    Try adding clearfix and/or margin auto.
     
    Plato, Nov 7, 2010 IP
  3. netgo

    netgo Active Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #3
    My template is working fine, I have added a page within the template (like a sub template) and the compatibility problem is only happening with pages that have this sub-template, but it doesn't have a style.css sheet of its own.
     
    netgo, Nov 7, 2010 IP
  4. netgo

    netgo Active Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #4
    Anyone can please help?
     
    netgo, Nov 9, 2010 IP
  5. DawnBaby

    DawnBaby Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What have you tried to fix the problem, have you added "width" for the elements, if you do not have the width then it will not center, another trick is to set

    padding-right:auto;
    padding-left:auto;
     
    DawnBaby, Nov 9, 2010 IP
  6. netgo

    netgo Active Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #6
    I have tried what you suggested, and also tried adding margin-right: auto; margin-left:auto, but none of these work
     
    netgo, Nov 17, 2010 IP