column gap without affecting width site:stackoverflow.com

JavaScript
grid-template-columns: 1fr 2fr 1fr
grid-gap: 10px
Source

Also in JavaScript: