rachelandrew / cssgrid-ama

Ask me anything about CSS Grid Layout
328 stars 12 forks source link

auto-fit in repeat baffles me #130

Closed caigner closed 6 years ago

caigner commented 6 years ago

Hello, Rachel!

I am struggling with a problem which involves repeat and auto-fit.

Example 1: Using auto-fit in line 24 https://codepen.io/caigner/pen/qoPopO As you can see, the first row's height is much higher than the text.

Now, let's change the auto-fit to 4.

Example 2: Changing auto-fit to 4 in line 24 https://codepen.io/caigner/pen/VXMdGo

As you can see, the height of the first row has changed. That's actually what I want, only with auto-fit.

Question:

Why does interchanging auto-fit to 4 change the height of the row? How can I achieve the same row-height, using auto-fit, besides setting it to a fixed height=40px; value?

Hope you can shed some light on this issue.

Regards, Christian

caigner commented 6 years ago

Oh well, I just updated from Firefox 52 to Firefox 58, and now it works. :-)