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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:07:42+00:00 2026-05-20T02:07:42+00:00

That title isn’t quite as crazy it seems. I promise!! While researching for another

  • 0

That title isn’t quite as crazy it seems. I promise!!

While researching for another question, I noticed the following in Stack Overflow’s stylesheets:

...
width: auto;
...
width: 650px!ie7;
padding-bottom: 20px!ie7;
...

Is this an odd type of conditional styling? Is this a mistake? Assuming it isn’t a mistake, does this work with all IE versions? Is there a way of specifying that a given rule should only be applied to versions of IE greater than – say – 7?

I have never encountered of this before – I’ve always used conditional comments for IE-specific styles (and for what it’s worth, I prefer keeping all IE-specific styles completely separate).

  • 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-20T02:07:43+00:00Added an answer on May 20, 2026 at 2:07 am

    I have heard of this before, but not with the exact text !ie7.

    I found a reference here: http://www.javascriptkit.com/dhtmltutors/csshacks3.shtml

    !ie

    Internet Explorer 7 fixed one of the
    issues with the !important identifier,
    but it still has problems when the
    identifier has an error in it. If an
    illegal identifier name is used in
    place of important, Internet Explorer
    7 and below will handle the property
    normally instead of failing.
    Therefore, in any style declaration
    block, you can include properties
    intended to only apply to Internet
    Explorer and add an !ie identifier.
    Almost any word can be used in place
    of ie.

    The !ie identifier allows the property
    to be applied in IE 7 and below. It
    may or may not work in future
    versions. Warning: this uses invalid
    CSS!

    So, width: 650px!ie7; will be applied in only IE 7 and below.

    The actual text ie7 is not required, but it’s a sensible string to use, to remind people of the purpose behind the hack.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if the question isn't that clear in the title but I had a
I'm here again with another question/problem. I know that topic's title may be like
(I realize that my title is poor. If after reading the question you have
eeesh that title isn't very good. Here is the situation. I have a simulation
I have a header/title bar that isn't resizing the way I want it to.
I suppose my title isn't that clear. I'll try to explain: I can write
Sorry if the title isn't worded the best. My UserRepository has a method that
OK, the question title probably isn't the best, but I'm looking for a good
I know the question title isn't amazing, but I can't think of a better
Hopefully that title isn't too cryptic. What's happening is I have a jQuery AJAX

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.