Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

repeat with auto-fit

/* it act like  flex-wrap: wrap; in flex 
we don't need to define row and columns by using auto-fit
in below code items of grid take as much space as it have
but when they have smaller then 80px when window size reduce it items will palce below
*/
grid-template-columns:repeat(auto-fit,minmax(80px,1fr))
 
PREVIOUS NEXT
Tagged: #repeat
ADD COMMENT
Topic
Name
3+5 =