Hacking IE CSS: Underscore, Box Model ‘Voice Family’, & Star hacks

CSS Hacks

Underscore Hack

/* CSS hack for IE 6 and below */
.test {
  position: fixed;
  _position: absolute;
}

Voice Family (Box Family or Tantek Hack)

/* CSS hack for IE 5.x */
.test {
  width: 500px;
  padding: 50px;
  voice-family: ""}"";
  voice-family: inherit;
  width: 400px;
}
html>body .test{
 width: 400px;
}

Backslash Hack

/* CSS hack for IE 5.5 and below */

.test {
  height: 500px;
  height: 400px;
}

Commented Backslash Hack

/* begin hiding from IE5 Mac */
.test {
  color: red;
}
/* end */

And then there’s:

/* apply ONLY to IE5 Mac *//*/
.test {
  color: red;
}
/* end */

High Pass Filter

/* CSS hack hides from browser which don't support @import */
  @import "null.css?"{";
  @import "highpass.css";