Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default CSS IE7 not picking up on a margin-top

    My login page has me baffled.

    I’d customised it and it was looking good, well for some reason, it doesn’t look good in IE7 any more. IE7 is refusing to pick up on the margin-top:113px; line in my custom stylesheet. It’s weird though because it was perfect in IE7 and I’ve not changed anything at all. It’s just started happening itself and for no reason… Maybe someone can see why from the CSS below?

    PHP Code:
    body {
    color:#555;
    font12px arialsans-serif;
    background-color:#d0d0d0;
    background-imageurl(../images/login-back3.png);
    background-repeat:no-repeat;
    background-position:top:100px;
    }

    #mainWrapper {
    display:block;
    margin-top:113px;
    border:none;
    background-imageurl(../images/login-logo.png);
    background-repeatno-repeat;
    text-alignleft;
    vertical-align:middle;
    width750px/* sets the width of the store */
    background-color:#fff; /* gives the store a white background */
    }

    #loginDefault {
    width650px/* set the width of the login table */
    margin-left:41px;
    margin-bottom:45px;
    }

    #navBreadCrumb {
    margin-top:95px;

    This works in all other browsers and it was working in IE7 too, until this morning when I noticed it wasn't working any more? Weird!
    Last edited by limelites; 16 Apr 2009 at 12:02 PM.

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS IE7 not picking up on a margin-top

    Hmmm, don't know how but somehow margin-top had moved from the body class.... fixed below:

    PHP Code:
    body {
    margin-top:113px;
    color:#555;
    font12px arialsans-serif;
    background-color:#d0d0d0;
    background-imageurl(../images/login-back3.png);
    background-repeat:no-repeat;
    }

    #mainWrapper {
    display:block;
    border:none;
    background-imageurl(../images/login-logo.png);
    background-repeatno-repeat;
    text-alignleft;
    width750px/* sets the width of the store */
    background-color:#fff; /* gives the store a white background */
    }

    #loginDefault {
    width650px/* set the width of the login table */
    margin-left:41px;
    margin-bottom:45px;
    }

    #navBreadCrumb {
    margin-top:95px;


 

 

Similar Threads

  1. margin-top not working in IE
    By dpecsok in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Sep 2008, 05:59 PM
  2. margin-top question
    By kitcorsa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Sep 2007, 01:35 PM
  3. Top Margin?
    By mommydesigns in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Feb 2007, 01:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg