🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Beginner

What is CSS Flexbox?

A CSS layout model that provides efficient arrangement of items within a container, handling alignment, distribution, and spacing.

Flexbox simplifies one-dimensional layouts (row or column). Key container properties: display: flex, flex-direction, justify-content (main axis alignment), align-items (cross axis), gap, and flex-wrap. Item properties: flex-grow, flex-shrink, flex-basis, and order.

Common patterns include centering (justify-content: center; align-items: center), equal spacing (justify-content: space-between), responsive navigation bars, and card layouts. Flexbox replaced many float and positioning hacks with clean, predictable layout behavior.

Related Terms

CSS Grid
A two-dimensional CSS layout system for creating complex grid-based designs with rows and columns.
Brotli Compression
A modern compression algorithm developed by Google that achieves better compression ratios than Gzip for web content delivery.
Web Components
A set of browser-native APIs for creating reusable, encapsulated custom HTML elements with their own styling and behavior.
JSON Schema
A vocabulary for validating the structure and content of JSON data, ensuring API requests and responses conform to expected formats.
Progressive Enhancement
A web design strategy that starts with basic functionality for all browsers and progressively adds advanced features for capable ones.
Cookie
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
View All Web Development Terms →