Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

minmax in grid

/* 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: #minmax #grid
ADD COMMENT
Topic
Name
9+6 =