CSS wildcards in attributes

I came across this:

#id { width: 73.076em; *width: 71.25em; } 

What does a wildcard mean? I can’t quickly figure out how to do this.

+7
source share
2 answers

Rule * ONLY ONE taken by Internet Explorer. This is a CSS hack . p>

*property: value applies the value of a property in IE 7 and below . It may or may not work in future versions. Warning: invalid CSS is used for this.

+8
source

@Phil is correct - *property: value is a CSS hack that will only be used in IE7 and below.

I would like a link to this article: http://mathiasbynens.be/notes/safe-css-hacks#css-hacks

Both _property: value and *property: value hosts (as can be seen from the above code block) are examples of secure CSS hacks. They were detected, identified as errors and corrected in a browser update. since it is likely that Microsoft and other browser providers have added checks for these CSS hacks on their layout tests so that there are no new versions of the browser that comes with regression, which is significant.

+2
source

All Articles