Which CSS property is used to define a container as a grid layout?

  • display: grid;
  • grid-container
  • grid-style
  • grid-template
To define a container as a grid layout, you should use the display: grid; CSS property. This property tells the browser to treat the specified container as a grid, enabling you to create grid-based layouts within it.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *