Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Property 'grid-gap' doesn't exist in CSS

Working on an ASP.NET MVC project and visual studio isn't recognizing grid-gap. Is it because of my version of CSS in this project? I haven't been able to find where that is set, any recommendations?

Edit: grid-row-gap also isn't recognized

like image 742
ErpaDerp Avatar asked Apr 22 '18 20:04

ErpaDerp


2 Answers

'grid-gap' has been deprecated in favor of 'gap'. In a similar vein 'grid-row-gap' and 'grid-column-gap' have been deprecated in favor of 'row-gap' and 'column-gap'.

Unfortunately, the new features aren't recognized by Visual Studio yet either.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap

like image 107
tltjr Avatar answered Oct 07 '22 04:10

tltjr


I know this question is old.Just stumbled upon this problem myself and so logging the answer here.

This can be achieved with 'column-gap' and 'row-gap'. Visual studio code also recognizes it as of October 2020.

like image 2
aish.a Avatar answered Oct 07 '22 02:10

aish.a