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.
Loading...
Related Quiz
- Which of the following CSS combinators targets a direct child element?
- The CSS @keyframes rule lets you create ________ over a set duration.
- Which CSS property is typically used to set breakpoints in responsive design?
- A font's loading performance can be improved by ________.
- You need to style a button differently when it's disabled. Which CSS pseudo-class would be most appropriate to achieve this?