Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

csslint Warning - The box-sizing property isn't supported in IE6 and IE7

Tags:

html

css

csslint

I am using CSSLint for the first time and trying it now. When I write following CSS

.div {
    box-sizing: border-box;
    border: 1px solid red;
    padding: 5px;
    width: 100px;
}

Then when I run Warning - The box-sizing property isn't supported in IE6 and IE7.

I also changed "box-sizing": false to "box-sizing": true in my .csslintrc file.

But I am still getting this warning. How can I solve this problem?

like image 558
Om3ga Avatar asked Mar 28 '14 09:03

Om3ga


1 Answers

I believe the correct flag is --ignore=box-sizing, so

csslint --ignore=box-sizing css/

Not sure how to set that in the .csslintrc, but if you are using the SublimeLinter-csshint package you can set the flag in the SublimeLinter package settings.

You can also add the option to the CSS file itself since csslint v0.9.10 like this (don't add any spaces):

/*csslint box-sizing: false*/
like image 100
JHannes Avatar answered Oct 21 '22 12:10

JHannes