csslint
csslint copied to clipboard
Unexpected token 1fr on line 159
Hello, I need some help. I build a responsive website using CSS grid. Everything looks good and perfect. After completing it I upload it to my hosting but when I check it from my mobile it did not look the same as what I made. My grid-template- columns are not working. It gives me an error message: "Unexpected token 1fr on line 159, column ...." I know that the grid works very well. grid-template-columns is not taken as a code for CSS. Now my website looks bullshit. If anyone has a solution in it plz help me.
The root cause is that csslint is no longer maintained: https://github.com/CSSLint/csslint/issues/754.
The workaround for general issues is to wrap the code in an ignore block, but IIRC that doesn't help with parsing issues like this.
/* csslint ignore:start */
.foo {}
/* csslint ignore:end */