Code Reference

Flexbox Properties

CSS · Methods reference

CSS · Methods reference


📋 Overview

All common flex container and flex item properties.

🔧 Methods

Container

PropertyValues / notes
`display: flexinline-flex`
flex-directionrow
flex-wrapnowrap
flex-flowShorthand direction + wrap
justify-contentmain-axis: flex-start
align-itemscross-axis per line
align-contentcross-axis extra space between lines
gap / row-gap / column-gapGutters between items

Items

PropertyDescription
flex-grow / flex-shrink / flex-basisGrowth, shrink, base size
flexShorthand: grow shrink basis
align-selfOverride align-items for one item
orderVisual order (not a11y order)

💡 Examples

See parent topic notes for runnable snippets; this page is the complete method index.

⚠️ Pitfalls

  • Mutating methods return None in Python — do not chain sort() / reverse() expecting a new list.
  • Default JS sort() compares strings — pass (a,b) => a-b for numbers.
  • SQL function names differ by dialect — verify Postgres vs MySQL docs.
  • Django QuerySet.update() skips save() signals and auto auto_now fields on models.

On this page