Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the '*' and '_' prefixes in css?

Tags:

css

Just stumbled upon this in a borrowed css file - something I've never noticed before, and punctuation in context is inherently hard to google:

.ez-radio { zoom: 1; *display:inline; _height:15px; }

What's the '*' prefix do?

And for the matter the underscore in _height?

Is this some new CSS3 trickery?

like image 798
jenson-button-event Avatar asked Dec 21 '22 15:12

jenson-button-event


1 Answers

It's used for CSS hacks in Internet Explorer.

* is IE 6 - 7 only (thank you, mck89!)

_ is IE 6 and below.

Don't use them. If you need browser specific CSS definitions, use specialized CSS definitions instead.

like image 191
Leonard Avatar answered Jan 08 '23 14:01

Leonard