Tag:Grid attribute

  • The use of grid attribute in CSS


    Grid layout Attributes added to parent elements grid-template-columns/grid-template-rows Define the width or height of a row or column of an element If the parent element is divided into nine equal parts, then no matter how many child elements there are, it will show nine equal parts. Grid-template-columns: 33% 33% 33%; can be written as grid-template-columns: […]