IE looks different than Chrome, Fire Fox - help with javascript and IE

Posted on 2011-10-21
Last Modified: 2012-05-12

Currently working on this page and in Chrome it looks good, but in IE it is not. How do I fix this to be centered properly.
Question by:angelic_webmaster
    LVL 7

    Expert Comment

    Welcome to Web Development 101. IE has been the bain of web developers for years, because it basically ignores the standards that all the others work so hard to adhere to.

    What most people do is have a bit of code check the user agent string to see if it is IE viewing the page, and if so, it kicks in a version of the page tailored for IE.

    Do you use the latest version of IE? IE8 and 9 have a "Compatibility view", which renders it how IE 6 would. If this is enabled, you'll have issues like you are having more often. If it is enabled, the n disable it and see how it looks.

    Author Comment

    Ok, I turned off the compatibility view and it looks the same. I hate IE.. it is always a pain in my side while designing. What else can I do?
    LVL 13

    Expert Comment

    its not just a ie problem, in firefox the slide show is also off to the right.
    I get this javascript error

    $("ul#topnav li").hoverIntent is not a function
     $("ul#topnav li").hoverIntent(config);  <-this is on line 103 of your ddm.js file.

    Author Comment

    Do I remove this line?
    LVL 13

    Accepted Solution

    ok so I may have a partial solution to your problem.
    In firefox and ie I noticed the the section called steps towards commercialization , that the text associated with that is way to the right.
    So what I did to fix that was put a float:left on that element and it lined up correctly with the rest of the page.
    And with that fixed the slideshow was fixed. The problem was not the slid show itself but the fact that the other element was not acting correctly and thus making the page larger than it should and with that larger page the slide show was actually centered.

    Author Closing Comment

    Thank you.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now