← Back to CoursesWeb Design & Development: Intermediate

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Layout Systems: Flexbox, Grid, and Responsive Structure

Manual: General · Subject: Web Design & Development

Learn how modern CSS layout systems solve alignment, distribution, and page structure problems.

Choosing a layout tool

Flexbox for one-dimensional layout

Flexbox is best when items need to be arranged along one axis, such as a row of navigation links or a vertical stack of cards. It controls alignment, spacing, wrapping, and distribution with properties like justify−contentjustify-content, align−itemsalign-items, and gapgap.

Grid for two-dimensional layout

CSS Grid is ideal for layouts that need rows and columns simultaneously, such as dashboards, galleries, and full page structures. It can define tracks using units like frfr, as well as named areas for readable placement.

🔑

Rule of thumb

Use Flexbox for components and Grid for page-level or two-dimensional structures.

Responsive design

Fluid and adaptive layout

Responsive design combines fluid measurements, flexible media, and breakpoints so layouts adapt across devices. Relative units like %\%, remrem, vwvw, and vhvh help elements scale more naturally than fixed pixels in many cases.

Which layout system is generally best for arranging items in a single row or column?

What is the main advantage of CSS Grid over Flexbox for page layout?

Media queries and breakpoints

Media queries let you apply different styles based on conditions such as viewport width. A mobile-first approach starts with a simple base layout and layers enhancements as the screen gets larger.

What does mobile-first design usually mean in CSS?