My web page aligns left in IE, but not in other browsers.

Discussion in 'Coding Help' started by LaurStacksMtns, May 8, 2012.

Tags:
  1. LaurStacksMtns

    LaurStacksMtns New Member

  2. mneylon

    mneylon Administrator Staff Member

    Which version of IE have you tested it in?

    Running it through the W3C validator is throwing quite a few errors, which probably aren't helping matters The W3C Markup Validation Service
     
  3. php.allstar

    php.allstar New Member

    Hi

    In your style.css file change this:

    HTML:
    body {     
        background-color:#6699CD;
        margin:0px;     
        padding:0px;     
        border:0px;
         background-repeat:repeat;
         text-align:center;
         background-image: url(Images/BluePuffySkies.gif); }
    
    to this:

    HTML:
    body {
        width: 1000px;
         background-color:#6699CD;
         margin:0px auto;
         padding:0px;
         border:0px;
         background-repeat:repeat;
         text-align:center;
         background-image: url(Images/BluePuffySkies.gif); }
    
    Let me know how you get on
     

Share This Page