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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:33:40+00:00 2026-05-23T10:33:40+00:00

This question is similar to the one I asked here . I am cleaning

  • 0

This question is similar to the one I asked here. I am cleaning up some files and I came across this in this css:


.something
{
  height: 33px;
  -height: 34px; /* does this do anything?? /
}


and


.something
{
  _width: 150px; / does this do anything?? */
}

EDIT: Okay, so the _ (underscore) is a css hack for IE, which is fine, I'll just leave it, but what about the minus sign, does it do anything at all?

Also, we are not supporting anything below IE 7 anymore, so if anything is a hack for IE6 I can take it out.

  • 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-23T10:33:41+00:00Added an answer on May 23, 2026 at 10:33 am

    Straight from the W3C CSS 2.1 Spec –

    4.1.2.1 Vendor-specific extensions

    In CSS, identifiers may begin with ‘-‘ (dash) or ‘_‘ (underscore). Keywords
    and property names beginning with ‘-‘ or ‘_‘ are reserved for vendor-specific extensions.

    However that said, using an underscore to prefix a CSS property is a well known CSS hack to apply that rule for rendering in IE 6.

    Since a CSS identifier can start with a ‘-‘ (dash) and be valid, this can be used to quickly comment out parts of CSS during development. For example in the CSS below, none of the properties will be set for h1 and only margin will be set for h2.

    -h1 { color:blue; margin:2em; }
    h2 { -color:pink; margin:2em; } /* property "-color" not valid */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is similar to the one i asked here . But its related
I asked a question similar to this one here and was given great answers,
Liu Chang asked a very similar question to this one here, Linux equivalent of
First of all, I know I asked a similar question before but this one
This is a similar question to this one here . Given a list of
My question is similar to this one , but I can simplify it some.
I can see this question (or a similar one) has been asked a few
I believe this question is slightly different than similar ones asked on here before
This question has been asked, in one form or another, a dozen times here,
I already asked a similar question but this one is a bit different/specific: I'm

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.