Glossary
Responsive design
One web application may be used on a wide monitor, small phone, tablet, and with enlarged text. Responsive design prioritises content and the user’s task over a list of specific devices.
Short definition
The interface responds to space and method of use, not a phone model.
A responsive interface uses flexible dimensions, appropriately chosen CSS rules, and gradual layout changes. Text remains readable, buttons remain reachable, and content is not hidden merely because the screen is narrower. A breakpoint is a point where a component’s arrangement changes to preserve usability, not a fixed definition of a specific device model.
The subject covers the entire experience. In addition to viewport width, page zoom, the length of translated text, touch input, keyboards, orientation, reduced window size, and reduced-motion preferences all matter. CSS handles presentation, but logical HTML order, accessible focus, and application functionality must work independently of dimensions.
The problem it solves
It enables users to complete the same task under different conditions.
A mobile screen is not a shrunken desktop, and a desktop is not always large or fast. The interface must work with limited space without losing meaning.
- readable product details, cart, and checkout on a phone and a wide monitor
- an administration interface where an order table remains usable without scrolling the entire page
- navigation, filters, and forms operable with a mouse, touch, and keyboard
- documentation and a glossary readable with enlarged text or in a split window
- components usable in sections of an application with different widths, not only across a whole page
Practical example
A product card that changes layout according to the available space
In a narrow space, the image, name, price, and action are stacked. Once enough space is available, CSS displays them side by side. The HTML order remains the same, so meaning does not change on mobile or during keyboard navigation, and focus does not jump to an illogical location.
The button has a distinct focus state. A media query responds to pointer capabilities, but the interaction target size does not depend solely on whether the browser recognises the device correctly. A real project must also be tested at 200% zoom and with longer translations.
CSS
.product-card {
display: grid;
gap: 1rem;
}
@media (min-width: 42rem) {
.product-card { grid-template-columns: minmax(0, 12rem) 1fr; }
}
.product-card__buy:focus-visible {
outline: 3px solid currentColor;
outline-offset: 3px;
}
How it works
From content to a layout that can rearrange itself
Responsiveness begins in HTML and in the task design. CSS then adjusts space, not the meaning of content.
- The main task and content are identified In an order list, the priorities might be status, customer, price, and action. Secondary information can be displayed differently but must not disappear without a trace if it is needed for a decision.
- A logical HTML order is created The heading, data, and controls follow an order that makes sense to screen readers and keyboard users. CSS Grid or Flexbox can then rearrange the presentation without changing the DOM.
- Flexible dimensions use the space Relative units, minmax, max-width, and percentages allow components to grow and shrink between breakpoints. The design does not rely only on a few fixed widths.
- Rules respond when needs change Media queries adjust the number of columns, navigation, or spacing, for example. Container queries are useful when a component’s width is not determined by the whole window.
- The interface is tested in real states Tests cover errors, long values, empty states, zoom, orientation, and operation without a mouse; only then is it clear whether the layout genuinely works.
Important related concepts
A flexible layout is a set of small decisions, not one media query.
The appropriate tool depends on whether the size of the content, whole page, or specific component is changing.
Fluid layout
Widths adapt naturally to the available space. Max-width prevents excessively long lines, while minmax and flex rules ensure columns do not shrink below a useful size.
Breakpoint
A breakpoint is the boundary at which the current arrangement stops serving its purpose. It should not be tied to a phone’s marketing name or one precise device width.
Flexbox and Grid
Flexbox is practical for one-dimensional alignment and distributing free space. Grid is suitable for two-dimensional layouts. Neither tool replaces decisions about content priority.
Media and container queries
A media query responds to viewport properties such as width or reduced-motion preference. A container query can respond to the space of a parent component, making reuse easier.
Touch target and zoom
A button needs a clear name, sufficient space, and visible focus. The design is tested when enlarged; increasing text size must not make a functional page unreachable.
Benefits and limitations
One maintained foundation reduces duplication but requires real testing.
Benefits
- content and actions remain accessible across a wide range of viewports
- one semantic structure makes maintenance and consistency easier
- flexible components work in a reduced window or beside other content
- respect for zoom and different input methods improves usability beyond mobile devices
Risks and common mistakes
- designing only for a few known widths instead of measuring actual content
- using CSS order so that visual and keyboard order contradict each other
- global horizontal scrolling caused by a fixed width or unconstrained content
- hiding an important function on a smaller screen without an alternative
- controls that are too small or focus removed for a cleaner appearance
Practical use
An order table need not lose information even on a small screen.
On desktop, an order overview can use a table with status, customer, price, date, and actions. On a narrower screen, it can preserve table semantics and offer controlled scrolling only within the table wrapper, or present the data as cards with clear names and actions. The entire page must not scroll horizontally and cause users to lose navigation context.
A layout change must not remove control over an order. Filters, status, price, and actions must remain reachable, and their names should not be replaced with ambiguous icons without text alternatives. Focus and result announcements also matter after a filter changes, especially when the interface loads data asynchronously.
What to consider
Test content and controls, not only screenshot width.
Responsive design is complete only when it works with real data and user settings.
- start with a logical HTML content order and do not use CSS merely to hide structural problems
- use flexible dimensions and choose breakpoints when the component stops fitting
- test narrow and wide widths, orientation changes, 200% zoom, long names, and empty states
- ensure the whole page does not create horizontal scrolling; a clearly marked wrapper around a wide table may be an exception
- check keyboard focus, interaction target sizes, and information conveyed by means other than colour
Common questions
Responsive design in practice
Is responsive design only a mobile version?
No. It responds to a fluid range of space, zoom, orientation, and input capabilities. Phones are an important case, but not the only condition of use.
How many breakpoints do I need?
There is no universal number. Add a breakpoint where specific content or a component stops working; a flexible layout without another breakpoint will often help first.
Is horizontal scrolling always a mistake?
The whole page should not scroll horizontally. Local, clearly controllable scrolling may make sense for a wide table or code block if it preserves context and a suitable alternative exists.
Does responsiveness guarantee accessibility?
No. It helps with zoom and different widths, but accessibility also requires semantics, keyboard operation, focus, contrast, and testing with people.
How I design interfaces in practice
I assess layout by the user’s task, not by a list of devices.
When developing web applications, I test content, forms, and administration interfaces at different widths, with zoom, and without relying on a mouse.