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 6778643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:17:24+00:00 2026-05-26T16:17:24+00:00

I thought IE7 and above followed the same box model as Chrome/Firefox/Opera, but when

  • 0

I thought IE7 and above followed the same box model as Chrome/Firefox/Opera, but when I run the following code in IE8 and then in Chrome/Firefox/Opera, I get different results.

In IE8, the end of the box shows up with a bit of a lip that I want to get rid of. Is it possible to use strictly CSS to fix my issue or do I need to use Javascript to detect the browser and then change the CSS?

Here is the link to the code that I am working with. In order to see my problem, you need to use IE and then either Chrome, Firefox or Opera.

http://jsfiddle.net/LsXTk/1/

  • 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-26T16:17:25+00:00Added an answer on May 26, 2026 at 4:17 pm

    IE7 has two modes: Compatibility mode and Standards mode. Yet another of a long line of brilliant moves on MS’s part with IE. (Yes, I’m being sarcastic):

    http://blogs.msdn.com/b/chkoenig/archive/2008/08/28/ie8-standards-mode-and-ie7-compatibility-mode.aspx

    What usually trips people up is that, by default, IE8 reverts to compatibility (ie, broke) mode if the page is being loaded locally or from a server on your network. I guess the logic was that it must be a page on your intranet, and since 90% of all intranet web software is horrifically coded IE6 monstrosities that pretty much break in any standard browser, it better assume the code is broken and revert to compatibility mode.

    As for detecting IE8, you can do it without JavaScript via IE’s conditional comments. What I typically do is wrap the opening body tag in conditionals and give each a unique ID:

    <!--[if !IE]> -->
        <body>
    <!--<![endif]-->
    <!--[if gt IE 8]> 
    <body id="IE9">
    <![endif]-->
    <!--[if IE 8]>
        <body id="IE8">
    <![endif]-->
    <!--[if IE 7]>
        <body id="IE7">
    <![endif]-->
    <!--[if lt IE 7]>
        <body id="IE6">
    <![endif]-->
    

    Then in your css, you can easily serve up separate CSS as needed:

    .myStyle {for good browsers}
    #ie7 .myStyle {fix for IE7}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have quite a lot of problems with IE7, but this time IE8 is
I've been able to do this in Chrome and Firefox, and I thought I
###########Update Here is the original code that worked in ie7 but not in 9.
So in IE8 and above along with other browsers such as Firefox to have
The code below works great in Chrome and it works intermittently in IE7 and
I have created html/css for modern browsers (IE7 and above, firefox, etc) and am
I recently came across an IE7 only bug that I thought I'd share so
It appears as though IE6, IE7, and IE8 are stripping \f (formfeed) characters from
I thought that would have been simple but it is not working. I can,
I thought this would be simple enough but somethings wrong. The only Bootstrap gem

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.