Week 2 Day 2: CSS Flexbox and Grid layout systems

This commit is contained in:
2025-12-23 16:42:55 +05:30
parent d38fa637b6
commit 1a18cc4696
5 changed files with 116 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
## CSS Layout Systems
### CSS Flexbox
Flexbox is a one-dimensional layout system used to align elements in rows or columns.
### Key properties:
display: flex
flex-direction
justify-content
align-items
gap
### Use cases:
Navigation bars
Centering content
Cards layout
### CSS Grid
Grid is a two-dimensional layout system used for complex page layouts.
### Key properties:
display: grid
grid-template-columns
grid-template-rows
gap
### Use cases:
Page layouts
Dashboards
Galleries
### Flexbox vs Grid
Flexbox → one direction (row OR column)
Grid → rows AND columns
Flexbox for components, Grid for pages