Flexbox

Concepts and Terminologies

Pasted image 20240817095531.webp|600

Grid

Grid vs Flexbox

Grid Flexbox
Two-dimensional layouts One-dimensional layouts
Works from layout-in Works from content-out
We create the grid on the parent We create the grid on the children
Allows us to occupy same space Can use in rows or columns
Can fully control negative space Good for distributing space

Concepts and terminologies

45.12 CSS Grid and Flexbox-20240817121551796.webp|600

Source

Also Read

Thoughts 🤔 by Soumendra Kumar Sahoo is licensed under CC BY 4.0