What does * do in CSS?

What does a star do? How it's called? For me this is some kind of wild card. What is it called, can I read about it?

#div {
  *zoom: 1; /*this ... *
   zoom : 1;
   display: inline;
   *display: inline; /*... and this, whats the difference? *
}

I know what this means (all elements):

* {
..css code
}
+5
source share
5 answers

In simple words, this is the key to target css in different versions of IE browser. He can also be called a CSS hacker.

#div {
  *zoom: 1; /*Only works on IE7 and below*/
  zoom : 1;
  display: inline;
  *display: inline; /*Only works on IE7 and below*/
}

Means that this CSS only works on IE7 and below. This is a kind of hack that we can use to apply CSS on IE7 and below.

Here's how to customize IE6, IE7 and IE8 uniquely

#div{  
 color: red; /* all browsers, of course */  
 color : green\9; /* IE8 and below */  
 *color : yellow; /* IE7 and below */  
 _color : orange; /* IE6 */  
} 

CLICK HERE if you want to know more about CSS browser.

+8
source

star-property hack IE *, . Internet Explorer 7 ( ). DOM, Explorer 1997 . , (X) HTML- html. Explorer 7 ( ) html .

+4

* :

Internet Explorer 7 , , - , IE6. , -- , , (*) , IE, . , CSS , CSS.

http://www.javascriptkit.com/dhtmltutors/csshacks3.shtml

+3

. IE, .

.

+2

What does the * in css? → , . div.red *{color: red;} , div.red, , * ALL .

* zoom: 1;* , IE, IE, .

*it is called an asterisk in a simple language and in a coding language it is called a Universal selector

0
source

All Articles