Sub topic 14
Adapting the layout to other formats and screens
This chapter assumes you can already place text over an image with a scrim, and that you know how a grid sets margins and columns. Here you will see what breaks when the same design moves to a new shape, and how to repair it.
Why a layout does not simply scale
A format change is a change in aspect ratio, not only in size. A wide banner shrunk to a phone screen makes the type tiny. A landscape photo cropped to a portrait story can lose its subject. The text zone you found in the image may no longer exist.
Treat each format as a new composition built from the same parts: image, headline, supporting text and margins.
A repeatable adaptation process
- Protect the focal point. Re-crop for each ratio instead of letting the tool center-crop. Move the crop so the subject stays inside the safe area.
- Find the new text zone. Look for negative space in the new crop. If none remains, move the text out of the image.
- Rescale type by role. Keep the hierarchy, and adjust sizes so a headline still reads at the new viewing distance. Body text should not fall below roughly 16 px on screens.
- Reapply the grid. Reduce columns on narrow screens, for example 12 on desktop, 4 on mobile. Keep margins consistent on each side.
- Check the scrim again. A gradient that sat behind text in a wide format may miss the text in a tall one.
Example: a hero that adapts
This CSS builds on the scrim from the earlier chapter. On narrow screens it shifts the crop toward the subject and changes the type size.
.hero {
position: relative;
min-height: 24rem;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 2rem;
color: #fff;
background:
linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 60%),
url("coast.jpg") center / cover no-repeat;
}
.hero h1 {
font-size: clamp(1.75rem, 5vw, 3.5rem);
line-height: 1.1;
}
@media (max-width: 600px) {
.hero {
min-height: 32rem;
padding: 1.25rem;
background-position: 30% center;
}
}The clamp() function sets a minimum, a flexible middle value and a maximum, so the headline scales smoothly without jumping between sizes. The media query makes the hero taller for a portrait-like shape and moves the crop with background-position. In this example the subject sits left of center.
Common errors
- Relying on automatic center-cropping, which cuts off faces or key objects.
- Shrinking everything proportionally, which leaves text unreadable.
- Keeping text over the image when the crop has removed the calm area.
- Testing only one device width.
Exercise
A landscape photo of a person on the left, with empty sky on the right, is used as a hero with white text over the sky. You must adapt it to a tall 9:16 story format. Describe two changes you would make and why.
Show answer
First, re-crop manually so the person stays inside the frame, because a center crop would cut them off. Second, the sky zone is now gone or too small, so either place the headline in whatever negative space remains with a stronger scrim, or move the text into a solid panel below the image. Then re-check contrast and type size at the new dimensions.