What is the main difference between CSS Grid and Flexbox in terms of layout direction?
- Grid allows bidirectional layout, while Flexbox is unidirectional.
- Flexbox allows bidirectional layout, while Grid is unidirectional.
- Grid and Flexbox both support bidirectional layout.
- There is no difference in terms of layout direction.
The correct option is Grid allows bidirectional layout, while Flexbox is unidirectional. CSS Grid is designed for two-dimensional layout, allowing control over both rows and columns, while Flexbox is primarily for one-dimensional layout along a single axis.
Loading...
Related Quiz
- How would you create a transparent border that doesn't affect the layout dimensions of a box?
- In mobile-first design, the use of ________ media queries is essential for adapting the layout for larger screens.
- One of the benefits of CSS-in-JS solutions is that they can prevent unused styles, leading to ________.
- In Flexbox, the ________ property defines the default size of an item before the remaining space is distributed.
- To apply an ease-in-out timing function to a transition, you'd set transition-timing-function to ________.