CSS, Web, Web Development, Layout.
The specific code is as follows: :root { --columns: 12; --gap: 10px; --span: 1; } .grid__container { display: grid; grid-template-columns: repeat(var(--columns), 1fr); grid-template-rows: 1fr; gap: var(--gap); padding-left: calc(var(--gap) / 2); padding-right: calc(var(--gap) / 2); } .grid__item {