Re: [css3-grid] Add an analogue of border-spacing?

On Jan 3, 2012 8:38 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> #page {
>   width: 800px;
>   height: 600px;
>   grid-template:
>     "aae"
>     "bbe"
>     "cde";
>   grid-rows: min-content 1fr 1fr;
>   grid-columns: 1fr 1fr 1fr;
>   grid-spacing: 5% 4%;
> }
>
> I'm not sure if percentages in grid-rows/columns should work on the full
width/height of the grid, or the width/height minus the spacing.  I've
cleverly avoided percentages in the above example.  ^_^

I would suggest having them work on the full width/height of the grid, as
gutters are often (but not always) relative to grid units (columns).

-Stephen Hay

Received on Tuesday, 3 January 2012 20:45:18 UTC