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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:49:01+00:00 2026-06-04T16:49:01+00:00

Possible Duplicate: Is a CSS property starting with a hash (#) valid? I tried

  • 0

Possible Duplicate:
Is a CSS property starting with a hash (#) valid?

I tried looking around here on Stackoverflow.com but couldn’t find anything related to my question. The open web wasn’t any better either, although there was an answer on Yahoo! Answers the ‘answer’ didn’t really say anything other than “[# is for IDs]” (no need to post the link of course).

This is a bit more advanced.

When reviewing the CSS code from a co-worker I found he used the # sign before several CSS properties.

What does the # sign before property do? That’s gotta be some IE targeting hack I’m assuming.

For example:

.selector { #property:value; }

or well:

.headings { #margin-top:10px; }

I thought I knew a lot about CSS but this one caught me by surprise, especially that there’s isn’t any documentation of this case out there on the open web other than that answer in Yahoo! Answers.

Any info about this is greatly appreciated.

Thanks.

  • 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-06-04T16:49:03+00:00Added an answer on June 4, 2026 at 4:49 pm

    Update

    It turns out that #property is for IE7 or less, quoting from Paul Irish:

    Update 2009.11.10 – Added #prop: value IE<=7 hack. I prefer it much
    less to *prop.


    Putting # before properties must be a hack for some browser. Other similar hacks include _ (for IE6 and below), * (for IE8 and below), etc.

    For more info, see:

    • Browser-Specific CSS Hacks
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: CSS Opacity Property I'm making a layer on an image which has
Possible Duplicate: Remove CSS from a Div using JQuery we can set backgroung-image property
Possible Duplicate: What does this CSS shorthand font syntax mean? I was looking at
Possible Duplicate: What does an asterisk do in a CSS property name? I'm going
Possible Duplicate: CSS selector case insensitive for attributes The here below code checks if
Possible Duplicate: Points in CSS specificity Here's an example of what I mean: http://jsfiddle.net/BTJXt/9/
Possible Duplicate: css @font-face not working with firefox, but working with chrome and IE
Possible Duplicate: What does a star-preceded property mean in CSS? I came across this
Possible Duplicate: CSS 3 content selector? I couldn't find a way online to hide
Possible Duplicate: CSS: fixed position on x-axis but not y? I have a HTML

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.