Digital Marketing

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.

Comments

Popular posts from this blog

Make online money from the Internet