Newer versions of Firefox do not use grid-column-gap or grid-row-gap,
when either value is a percentage instead of a fixed length, when
computing the size of the element. This is not unreasonable; the size of
the container depends on the spacing, which in turn depends on the
spacing, so defining lengths is difficult.
Get around this by just specifying absolute sizes for margins. Since
most of our pictures are 500x500 px this is still about 5% anyway.
.threecolumn {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
- grid-column-gap: 5%;
- grid-row-gap: 5%;
+ grid-column-gap: 25px;
+ grid-row-gap: 25px;
margin-left: auto;
margin-right: auto;
+ margin-bottom: 25px;
}
/*
.twocolumn {
display: grid;
grid-template-columns: 1fr 1fr;
- grid-column-gap: 5%;
- grid-row-gap: 5%;
+ grid-column-gap: 25px;
+ grid-row-gap: 25px;
margin-left: auto;
margin-right: auto;
+ margin-bottom: 25px;
}
/*
.onecolumn {
display: grid;
grid-template-columns: 1fr;
- grid-column-gap: 5%;
- grid-row-gap: 5%;
+ grid-column-gap: 25px;
+ grid-row-gap: 25px;
margin-left: auto;
margin-right: auto;
+ margin-bottom: 25px;
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams