Skip to main content
Participant
April 21, 2020
Answered

grid-template-columns gives error in Dreamweaver

  • April 21, 2020
  • 1 reply
  • 3630 views

In my css file I have 

@media (min-width: 768px) {
	.cards { grid-template-columns: repeat(4, 1fr); }
}

and I get an error saying

Expected RBRACE

 

I got the code from https://travishorn.com/responsive-grid-in-2-minutes-with-css-grid-layout-4842a41420fe and all is working as expected. 

 

Why is there an error?  

    This topic has been closed for replies.
    Correct answer BenPleysier

    Because Dreamweaver linting is behind the times. Ignore the error or turn off linting.

    1 reply

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    April 21, 2020

    Because Dreamweaver linting is behind the times. Ignore the error or turn off linting.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    YerrunAuthor
    Participant
    April 21, 2020

    Thank you for your answer, Ben.

     

    I've looked at Linting. If possible I don't want to turn it off for css completely. 

     

    Do you know if I can add a rule to turn this one only?

    Jon Fritz
    Community Expert
    Community Expert
    April 21, 2020

    I haven't found a way to kill that error specifically. DW just doesn't understand "fr" yet. 

     

    Hopefully in the next release. Or use the online validation tool instead: https://jigsaw.w3.org/css-validator/