What responsive design is
Responsive design means one page adapts to any screen, from a 320-pixel phone to a 1920-pixel monitor, instead of a separate site for phones. The content stays the same; the layout rearranges itself.
It matters because many visitors arrive on phones, and a layout that only works on the developer’s laptop fails for them quietly.
The tools
- Fluid widths
- Sizes such as min(1160px, 100% − 48px) let the page grow with the screen up to a comfortable maximum.
- Breakpoints
- Media queries change the layout at chosen widths. On this site: two columns at 960 pixels and below, one column at 680 and below.
- CSS Grid
- Two-dimensional layouts, such as the card grids and the portrait area, where the chips sit in their own rows on the frame’s corners.
- Flexbox
- Rows that wrap, such as the navigation and groups of buttons.
- Fluid type
- clamp() lets headings scale smoothly between a smallest and a largest size.
- Viewport tag
- One meta tag tells phones to use their real width instead of imitating a desktop.
Habits
- Design for the smallest screen first, then let larger screens add space.
- Never let content stick out sideways: one stray element makes the whole page scroll left and right.
- Check the in-between widths, not just one phone and one laptop; problems often hide around 700 or 900 pixels.
- Measure instead of eyeballing: overlaps and sideways scrolling can be detected automatically.
- Check on a real phone before calling it done.
A case from this site
Two decorative chips beside the portrait sat over the frame’s corners, and on a real phone they covered the photograph. A layout audit then loaded six pages at twenty widths, from 320 to 1920 pixels, in both themes and with both portrait shapes, and listed every place where content overlapped, was cut off or stuck out sideways. The chips were the only problem. Giving them their own grid rows above and below the frame, so they rest on its corners and overlap only its border, fixed every width at once, and the audit came back clean.
The same audit showed the portrait caption wrapping onto two lines on narrow phones. Slightly tighter letter spacing on small screens keeps it on one line down to 344 pixels; at 320 pixels it still takes two lines, which is acceptable for a caption.
Another rule taught a related lesson: on the generated project pages, a phone rule written for the portfolio’s own header moved the brand to the wrong side. A rule that is too general reaches places it was never written for.