W3C home > Mailing lists > Public > www-style@w3.org > January 2012

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

From: Stephen Hay <haymail@gmail.com>
Date: Tue, 3 Jan 2012 21:44:42 +0100
Message-ID: <CANPZ3DAFcE27V4+NnUfhtKz_t8GRJ=dW+QhpuibACS-beH8ZtQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT