I ran accross this:
#id {
width: 73.076em;
*width: 71.25em;
}
What does the wildcard mean? I can't seem to quickly google my way out of this.
The asterisk (*), also known as the CSS universal selector, is used to select all items in an HTML file. CSS selectors are used to select the sections of your web page you wish to style.
A wildcard character is used to substitute one or more characters in a string. Wildcard characters are used with the LIKE operator. The LIKE operator is used in a WHERE clause to search for a specified pattern in a column.
CSS attributes are properties that influence the styling and layout of HTML elements. Each property controls a small part of the overall style.
The *
rule IS ONLY picked up by Internet Explorer.. It's a CSS hack.
*property: value
applies the property value in IE 7 and below. It may or may not work in future versions. Warning: this uses invalid CSS.
@Phil is correct - *property: value
is a CSS hack that will only be applied in IE7 and lower.
I'd like to link to this article: http://mathiasbynens.be/notes/safe-css-hacks#css-hacks
Both the
_property: value
and*property: value
hacks (as seen in the above code block) are examples of safe CSS hacks. They were discovered, identified as bugs, and patched in a browser update. Since then, it’s very likely that Microsoft and other browser vendors added checks for these CSS hacks to their layout tests, to make sure no new browser version is shipped with a regression this significant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With