Align Items
The align-items property aligns items along the cross axis.
stretch (Default)
Items stretch to fill the container:
Loading CSS Playground...
All boxes stretch to the same height!
flex-start
Items align to the start of the cross axis:
Loading CSS Playground...
flex-end
Items align to the end:
Loading CSS Playground...
center
Items align to the center:
Loading CSS Playground...
baseline
Items align by their text baseline:
Loading CSS Playground...
Interactive Playground
Loading Flexbox Playground...
Perfect Centering
Combine justify-content and align-items:
Loading CSS Playground...
Practical: Icon with Text
Loading CSS Playground...
Practical: Header Layout
Loading CSS Playground...
align-self
Override alignment for a single item:
Loading CSS Playground...
Exercise: Center Vertically
Center the content vertically in the container:
Loading CSS Exercise...
التالي · الدرس 19 من 27
Flex Item Properties
قراءة 3 دقيقة
أنهيت 18 من 27 درسًا

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

