• I’m having an issue with my site which is driving me mad!

    It’s centre aligned in Firefox but left aligned in IE! I’ve checked the forum and none of the other previous fixes have worked!

    Any help would be appreciated! Many thanks!!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • apply margin:0px auto; width:1000px; to your main container

    Thread Starter teamroyster

    (@teamroyster)

    Hi Rahul,

    I appreciate you taking the time to respond!

    What do you mean by ‘main ontainer’? This is my first site deployment and I’m afraid the terminology is slightly beyond me!

    Thanks.

    Thread Starter teamroyster

    (@teamroyster)

    Sorry, that should have been ‘main container’ not ‘main ontainer’.

    after your body tag ( in header.php), start a div, assign some id to id (example id=”maincontainer”)

    in your footer.php, end that div.

    Now, in your css file:

    #maincontainer {
    margin:0px auto;
    width:1000px;
    }
    Thread Starter teamroyster

    (@teamroyster)

    Hmmm…still not working!

    Rahul, if you’ve got paypal I’ll pay you $10 to fix it for me?

    add in content
    #content{

    margin-left : expression(this.offsetWidth < this.parentNode.offsetWidth ? parseInt((this.parentNode.offsetWidth – this.offsetWidth)/2)+”px”:”0″);

    }

    Thread Starter teamroyster

    (@teamroyster)

    Hi Rahul,

    I managed to fix it with –

    body {
    margin: 0px;
    padding: 0px;
    text-align: center;
    }

    #container {
    text-align: left;
    margin: auto;
    width: 760px;
    }

    Thank you for all the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Centre align in Firefox – Left align in IE!’ is closed to new replies.