I have CSS like this to target Internet Explorer 6 specifically.
.inline-block {
display: -moz-inline-stack;
display: inline-block;
*display: inline;
zoom: 1;
width: 100px;
}
When I run CSSLint via
csslint --ignore=star-property-hack test.css
it still shows this error:
width can't be used with display: inline.
width: 100px;
Is there any fix?
that's correct... when display is inline, width has no meaning. Why would you set display to inline instead of inline-block?
Nevertheless, try putting the star property in another style with the same selector: