Special CSS Values ​​*, \ 0 /

I see css code with *, \ 0 / I just wonder what it means? I suppose they are associated with a specific browser?

.form_element select { padding:4px; *padding:0px; padding:0px \0/; } 
+6
source share
4 answers

A person jumping for joy ( \0/ ) is a CSS IE8 + 9 CSS hack.

Star Hack ( * ), which does not have to be * ( # also works), is IE6 + 7 Hack.

+5
source

\0/ points to IE8 and below and appears after the value:

 #id { padding: 0px \0/; } 

* targets IE7 and below and appears immediately before the property

 #id { *padding: 0px; } 

_ targets IE6 and lower and appears immediately before the property

 #id { _padding: 0px; } 
+6
source

It hack IE8, IE9 check http://paulirish.com/2009/browser-specific-css-hacks/

 #div {color: blue\0/;} /* must go at the END of all rules */ 
0
source

Source: https://habr.com/ru/post/902729/


All Articles