Tuesday, October 25, 2011

CSS positioning: IE hack

.myfloat {
  background-image:url(image.jpg);
  background-repeat:no-repeat;
  background-position:top;
  width:522px;
  height:249px;
  position:relative;
  left:-17px;
  left /*\**/: -18px\9; /* IE8 */
  ^left:-17px; /* IE6/7 */
}