Page 1 of 1

layout grid column margin

Posted: Tue May 10, 2022 3:10 pm
by piotrh
Hello Pablo,
is there any way to set marigin for columns in layout grid?
For example: I am setting background color for layout grid to black.
Then I am setting column color to white. I would like to set the marigin for columns so there would be a black gap (layout grids background color) between them.
Right now column color is always filling whole column width.
If possible – I would like to not to nest another layout grid.

Bests
Piotr

Re: layout grid column margin

Posted: Tue May 10, 2022 3:43 pm
by Pablo
Instead of using a margin, you can set a border for the columns.

Re: layout grid column margin

Posted: Tue May 10, 2022 4:42 pm
by piotrh
Yes... but what if I want to use margin and also border?
P

Re: layout grid column margin

Posted: Tue May 10, 2022 5:02 pm
by crispy68
There is not a way to add margin to a layout grid column that I'm aware of. Could you use flexgrid? With some CSS code I believe it would be possible.

Re: layout grid column margin

Posted: Tue May 10, 2022 5:15 pm
by Pablo
It's not possible to add margin to columns because this would add extra width to the columns. So, the total width would be wider than 100%.

Re: layout grid column margin

Posted: Tue May 10, 2022 5:32 pm
by piotrh
Thank You both!
P