CSS Grid: auto-fit vs auto-fill
auto-fit works almost identically to auto-fill. The only difference is
that when the container's size exceeds the size of all the items
combined, auto-fill keeps inserting empty rows or columns and pushes
your items to the side, while auto-fit collapses those empty rows or
columns and stretches your items to fit the size of the container.
that when the container's size exceeds the size of all the items
combined, auto-fill keeps inserting empty rows or columns and pushes
your items to the side, while auto-fit collapses those empty rows or
columns and stretches your items to fit the size of the container.
Comments
Post a Comment