Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:15:39+00:00 2026-05-16T22:15:39+00:00

I am having an issue wherein my web application behaves different in (IE5 &

  • 0

I am having an issue wherein my web application behaves different in (IE5 & IE6) as compared with (IE7 & IE8)

There is some CSS Issue but I do not want to get in a situation where I make some changes in CSS File and web application would work fine in (IE5 & IE6) and not in (IE7 & IE8) and so my question is:

How should I approach problem to resolve CSS incompatibities or differences between different version of IE ?

Any guidance and suggestions would be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:15:39+00:00Added an answer on May 16, 2026 at 10:15 pm

    Create a cascade of style sheets like so:

    <link id="stylesheet1" rel="stylesheet" href="css/style.css" type="text/css" media="all" /
    <!--[if IE]>
      <link id="stylesheet2" rel="stylesheet" href="css/ie.css" type="text/css" media="all" />
    <![endif]-->
    <!--[if lte IE 6]>
      <link id="stylesheet3" rel="stylesheet" href="css/ie6.css" type="text/css" media="all" />
    <![endif]-->
    <!--[if lte IE 5]>
      <link id="stylesheet4" rel="stylesheet" href="css/ie5.css" type="text/css" media="all" />
    <![endif]-->
    

    style.css:

    .myclass{
      width:100px;
    }
    

    ie.css:

    /* override class from style.css */
    .myclass{
      width:105px;
    }
    

    ie6.css:

    /* override class again from ie.css */
    .myclass{
      width:110px;
    }
    

    ie5.css:

    /* if necessary, override class again from ie6.css */
    .myclass{
      width:115px;
    }
    

    You only need to over-ride what needs to be over-ridden.

    Pekka is right, you need to take each problem/bug/display-difference on a case-by-case basis. So if something isn’t showing up right in IE6, you need to adjust it in ie6.css. If even after that, it’s not showing up right in IE5, you need to adjust it in ie5.css.

    If you practice a little, you will understand better.


    Explanation:

    <!--[if IE]>
      only Internet Explorer browsers (all versions) will see HTML between these statements
    <![endif]-->
    <!--[if lte IE 6]>
      only Internet Explorer 6 or lower browsers will see HTML between these statements
    <![endif]-->
    <!--[if lte IE 5]>
      only Internet Explorer 5 or lower browsers will see HTML between these statements
    <![endif]-->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue in my application where I am seeing an excessive amount
Having issue with my navigation. How can I prevent it? My CSS file looks
I'm having issue working with json_decode() in PHP. Im using the json2.js library to
I am working on an MVC 3 project and i am having issue with
We have a device that support SAE J1939 interface and having issue with finding
Having an issue applying the rules that rounders the upper-left and upper-right corners in
I have a table with rows in it. I want to highlight the different
Is there a way I tell my code to import certain libraries only when
I am using PHP to create a directory. After the directory is created it
I have installed latest Team Foundation Server MSSCCI Provider 2010 Microsoft Visual Studio Team

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.