![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I've come across a style sheet with eg: #idname { width:73.074em; *width:71.313em; min-width:950px; } and .classname { _position:static; } /* for IE < 7 */ but I've not got any idea what the effect of prepending the properties with * or _ is. Can anyone explain or point me to an explanation? I had a look at the css 2.1 spec and tried googling, but couldn't find anything useful. Denis McMahon |
#3
| |||
| |||
|
|
Denis McMahon wrote: Hi I've come across a style sheet with eg: #idname { * *width:73.074em; * **width:71.313em; * *min-width:950px; } and .classname { * _position:static; } /* for IE < 7 */ but I've not got any idea what the effect of prepending the properties with * or _ is. Can anyone explain or point me to an explanation? I had a look at the css 2.1 spec and tried googling, but couldn't find anything useful. Denis McMahon Goggle is your friend ... http://www.google.com/search?hl=en&safe=off&num=50&q=css+asterisk&aq=... -- Ed Mullenhttp://edmullen.net "I have not failed, I've just found 10,000 ways that won't work." - Thomas Edison |
#4
| |||
| |||
|
|
On Jul 19, 5:16*pm, Ed Mullen <e... (AT) edmullen (DOT) net> wrote: Denis McMahon wrote: Hi I've come across a style sheet with eg: #idname { * *width:73.074em; * **width:71.313em; * *min-width:950px; } and .classname { * _position:static; } /* for IE < 7 */ but I've not got any idea what the effect of prepending the properties with * or _ is. Can anyone explain or point me to an explanation? I had a look at the css 2.1 spec and tried googling, but couldn't find anything useful. Denis McMahon Goggle is your friend ... http://www.google.com/search?hl=en&safe=off&num=50&q=css+asterisk&aq=... -- Ed Mullenhttp://edmullen.net "I have not failed, I've just found 10,000 ways that won't work." - Thomas Edison Ok, so it explained what the underscore hack is for, but all I can find out about the asterisk prefixed to a property name is that it's something from a yahoo library. Note, I'm not referring to asterisk as a selector, but asterisk prefixed to a property name eg: p, h1, h2 { * width: 70em; * *width 69em; } The google search suggested doesn't lead me to any explanation, it did suggests a may 2006 yahoo developer blog post, but although I looked at the posts concerned and css stuff linked in the posts I couldn't find an explanation of what this particular hack is for. |
#5
| |||
| |||
|
|
It's an IE hack of some sort (ie sees the property, other browsers don't), but different to the _ hack (which is used for IE < 7 according to comments in the file). |
|
Not sure if it's "all IE" (including 7+) as opposed to <7 or not. So not that much clearer really. |
#6
| |||
| |||
|
|
Denis McMahon wrote: It's an IE hack of some sort (ie sees the property, other browsers don't), but different to the _ hack (which is used for IE < 7 according to comments in the file). It's the Holly hack. Yes, by the rules if a property is misspelled it is *supposed* to be ignored by the browser. IE does the wrong thing... |
#7
| |||
| |||
|
|
I've come across a style sheet with eg: #idname { width:73.074em; *width:71.313em; min-width:950px; } .... but I've not got any idea what the effect of prepending the properties with * or _ is. |
![]() |
| Thread Tools | |
| Display Modes | |
| |