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

  • SEARCH
  • Home
  • 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 am having issue setting a cookie to a web-service call in .NET. Before
I'm having an issue in my application where I am seeing an excessive amount
I'm moving an web application to a subdirectory from it's root and having issues
Im having issue with mail sending In web.config file <mailSettings> <smtp from=xxxx@companyname.com> <network host=mail.authsmtp.com
currently im working on symfony based large application. i m having issue on displaying
We are having a rather frustrating issue wherein WebLogic takes its usual 3-5 minutes
im having issue with getting position of an element. there are 4divs with position
I am having issue with png image on IE6 and tried to search every
http://jsfiddle.net/fSrBv/ I'm having an issue here where in my From field I'm able to
I having issue that content assistant / intellisense is working in methods such as

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.