<!DOCTYPE html> | |
<link rel="help" href="https://www.w3.org/TR/css-grid-1/#gutters"> | |
<link rel="help" href="https://www.w3.org/TR/css-align-3/#gaps"> | |
<link rel="match" href="grid-gutters-015-ref.html"> | |
<style> | |
.grid { | |
display: inline-grid; | |
padding: 10px; | |
grid-template-columns: 40px 40px; | |
grid-template-rows: 40px 40px; | |
border: solid; | |
gap: 20%; | |
} | |
.grid > div { | |
background: green; | |
} | |
</style> | |
<div class="grid"> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
</div> |