Flex Item Properties
Control how individual flex items grow, shrink, and size themselves.
flex-grow
Determines how items grow to fill extra space:
Loading CSS Playground...
Different Grow Values
Loading CSS Playground...
The middle box gets twice as much extra space!
flex-shrink
Controls how items shrink when space is limited:
Loading CSS Playground...
flex-basis
Sets the initial size before growing/shrinking:
Loading CSS Playground...
The flex Shorthand
flex: grow shrink basis combines all three:
Loading CSS Playground...
Common flex Values
Loading CSS Playground...
Interactive Playground
Loading Flexbox Playground...
Practical: Equal Columns
Loading CSS Playground...
Practical: Sidebar Layout
Loading CSS Playground...
order Property
Change visual order without changing HTML:
Loading CSS Playground...
Exercise: Make Item Grow
Make the middle item grow to fill available space:
Loading CSS Exercise...
التالي · الدرس 20 من 27
Introduction to Grid
قراءة 2 دقيقة
أنهيت 19 من 27 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

