Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    I'm sure it's something extremely small, but I can't find the error in the code that is making the index page centered in Firefox, but it's shoved to the left in IE. Can someone help?!

    The website is currently located at: http://www.fallick.com/test/index.html

    Thanks a ton!

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Instead of centering with margin:0 auto, which I personally have always had problems with in IE, use this:

    #container{
    background-color:white;
    height:1150px;
    left:50%; /*pushes the left edge of the div to the center*/
    margin-left:-455px; /* negative half the width to move it halfway back */
    position:relative; /*must have this or absolute for the trick to work*/
    width:910px;
    }
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    That worked like a charm! But...it skews my navbar submenus to the right of the parent menu, only in IE. Any idea, what I can code to get this to align again?

    Why is IE ALWAYS the pain in the butt! ugh...

    Thanks for the help!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:36 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com