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.
Add your answer
Loading...

Leave a comment

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