Flexbox
beginnerDefinition
A modern way to arrange a row (or column) of items on a webpage and easily control how they line up, how much space each one takes, and what to do with the leftover space. Perfect for things like a navigation bar with a logo on the left and menu items on the right.
In the wild
A website's top bar has a logo, a search box in the middle, and an account button on the right. Flexbox lets the designer say 'put the logo at the left edge, push the account button to the right edge, and let the search box stretch to fill whatever space is left in between.'
More from Frontend & Responsive Design
Accessibility (a11y)
Building websites and apps so that everyone can use them: including people who can't see well, can't use a mouse, are color-blind, or rely on a screen reader to read pages aloud. Accessibility is partly thoughtful design and partly small technical details done correctly.
ARIA (Accessible Rich Internet Applications)
A set of small labels you can add to webpage elements to tell screen readers and other assistive tools what each piece of the page is and what it's doing. ARIA is useful when the standard tags can't fully explain a custom widget on their own.
Box Model
The mental picture of how every element on a webpage is laid out. Each element is a rectangle made of four nested layers: the actual content in the middle, padding around it (the inner cushion), then a border, then margin (the outer breathing room before the next element starts).
Breakpoint
A particular screen width at which a webpage changes its layout to suit the new size. Below the breakpoint the page might show a single column for phones; above it, the same content might rearrange into a multi-column layout for tablets or desktops.
CSS Grid
A way of arranging things on a webpage into neat rows and columns at the same time: like a spreadsheet you can place items into. It's the right tool for page layouts, photo galleries, and anything that needs to line up in a tidy grid.
CSS Specificity
The way a webpage decides which style wins when several styling rules try to apply to the same element. The more precise a rule is, naming a particular item by ID rather than a whole group, the higher its priority. It's why a designer's careful tweak sometimes loses to an older, more specific rule they forgot existed.