Over the previous few months, I’ve explored how we will get inventive utilizing well-supported CSS properties. Every article is meant to nudge net design away from uniformity, towards designs which might be extra distinctive and memorable. One little bit of suggestions from Phillip Bagleg deserves a comply with up:
Andy’s guides are all very attention-grabbing, however largely impractical in actual life. Little or no steerage on how journal type design, works when thrown right into a responsive setting.
Truthful level properly made, Phillip. So, let’s bust the parable that editorial-style net design is impractical on small screens.

My temporary: Patty Meltt is an up-and-coming nation music sensation, and he or she wanted an internet site to launch her new album and tour. She needed it to be distinctive-looking and memorable, so she referred to as Stuff & Nonsense. Patty’s not actual, however the challenges of designing and creating websites like hers are.
The issue with limitless columns
On cell, folks can lose their sense of context and may’t simply inform the place a piece begins or ends. Good small-screen design may help orient them utilizing a wide range of methods.
When display screen house is tight, most designers collapse their layouts right into a single lengthy column. That’s nice for readability, however it may negatively affect the consumer expertise when hierarchy disappears; rhythm turns into monotonous, and content material scrolls endlessly till it blurs. Then, nothing stands out, and pages flip from being designed experiences into content material feeds.
Like {a magazine}, structure delivers visible cues in a desktop setting, letting folks know the place they’re and suggesting the place to go subsequent. This rhythm and construction may be as a lot part of visible storytelling as color and typography.
However these cues incessantly disappear on small screens. Since we will’t depend on advanced columns, how can we design visible cues that assist readers really feel oriented throughout the content material circulate and keep engaged? One reply is to cease pondering by way of one lengthy column of content material altogether. As an alternative, deal with every part as a definite composition, a designed second that guides readers by means of the story.
Designing moments as a substitute of columns
Even inside a slim column, you’ll be able to add selection and cut back monotony by pondering of content material as a sequence of meaningfully designed moments, every with distinctive behaviours and types. We would use different compositions and sizes, prepare parts utilizing totally different patterns, or use horizontal and vertical scrolling to create experiences and inform tales, even when house is proscribed. And happily, we’ve the instruments we have to try this at our disposal:
These moments would possibly transfer horizontally, breaking the monotony of vertical scrolling, giving a piece its personal rhythm, and maintaining associated content material collectively.
Make use of horizontal scrolling
My desktop design for Patty’s discography consists of her album covers organized in a modular grid. Layouts like these are straightforward to realize utilizing my modular grid generator.

However that association isn’t essentially going to work for small screens, the place a sensible answer is to rework the modular grid right into a horizontal scrolling ingredient. Scrolling horizontally is a well-recognized behaviour and a approach to give grouped content material its personal stage, the best way {a magazine} unfold would possibly.
I began by defining the modular grid’s father or mother — on this case, the imaginatively named modular-wrap — as a container:
.modular-wrap {
container-type: inline-size;
width: 100%;
}
Then, I added grid types to create the modular structure:
.modular {
show: grid;
hole: 1.5rem;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
overflow-x: seen;
width: 100%;
}
It could be tempting to break down these grid modules on small screens right into a single column, however that will merely stack one album on prime of one other.

So as a substitute, I used a container question to rearrange the album covers horizontally and allow somebody to scroll throughout them:
@container (max-width: 30rem) {
#example-1 .modular {
show: grid;
hole: 1.5rem;
grid-auto-columns: minmax(70%, 1fr);
grid-auto-flow: column;
grid-template-columns: none;
grid-template-rows: 1fr;
overflow-x: auto;
-webkit-overflow-scrolling: contact;
}
}

Now, Patty’s album covers are organized horizontally somewhat than vertically, which types a cohesive part whereas stopping folks from shedding their place throughout the general circulate of content material.
Push parts off-canvas
Final time, I defined tips on how to use shape-outside and create the phantasm of textual content flowing round either side of a picture. You’ll usually see this impact in magazines, however rarely on-line.

Desktop shows have loads of house out there, however what about smaller ones? Properly, I may take away shape-outside altogether, but when I did, I’d additionally lose a lot of this design’s character and its impact on visible storytelling. As an alternative, I can retain shape-outside and place it inside a horizontally scrolling part the place a few of its content material is off-canvas and outdoors the viewport.
My content material is cut up between two divisions: the primary with half the picture floating proper, and the second with the opposite half floating left. The 2 pictures be part of to create the phantasm of a single picture on the centre of the design:
I knew this implementation would require a container question as a result of I wanted a father or mother ingredient whose width determines when the structure ought to swap from static to scrolling. So, I added a part outdoors that content material in order that I may reference its width for figuring out when its contents ought to change:
part {
container-type: inline-size;
overflow-x: auto;
place: relative;
width: 100%;
}
My method includes spreading content material throughout two equal-width divisions, and these grid column properties will apply to each display screen measurement:
.content material {
show: grid;
hole: 0;
grid-template-columns: 1fr 1fr;
width: 100%;
}
Then, when the part’s width is beneath 48rem, I altered the width of my two columns:
@container (max-width: 48rem) {
.content material {
grid-template-columns: 85vw 85vw;
}
}
Setting the width of every column to 85% — somewhat below viewport width — makes a number of the right-hand column’s content material seen, which hints that there’s extra to see and encourages somebody to scroll throughout to take a look at it.

The identical precept works at a bigger scale, too. As an alternative of creating small changes, we will flip a complete part right into a miniature journal unfold that scrolls like a narrative in print.
Construct scrollable mini-spreads
When designing for a responsive setting, there’s no cause to lose the expressiveness of a magazine-inspired structure. As an alternative of flattening every little thing into one lengthy column, sections can behave like self-contained mini journal spreads.

My closing shape-outside instance flowed textual content between two photomontages. Components of these pictures escaped their containers, creating depth and a structure with a distinctly editorial really feel. My content material contained the 2 pictures and several other paragraphs:
Two pictures float both left or proper, every with shape-outside utilized so textual content flows between them:
.content material img:nth-of-type(1) {
float: left;
width: 45%;
shape-outside: url("https://css-tricks.com/getting-creative-with-small-screens/left.webp");
}
.spread-wrap .content material img:nth-of-type(2) {
float: proper;
width: 35%;
shape-outside: url("https://css-tricks.com/getting-creative-with-small-screens/proper.webp");
}
That behaves superbly at massive display screen sizes, however on smaller ones it feels cramped. To protect the design’s essence, I used a container question to rework its structure into one thing totally different altogether.
First, I wanted one other father or mother ingredient whose width would decide when the structure ought to change. So, I added a part outdoors in order that I may reference its width and gave it somewhat padding and a border to assist differentiate it from close by content material:
part {
border: 1px stable var(--border-stroke-color);
box-sizing: border-box;
container-type: inline-size;
overflow-x: auto;
padding: 1.5rem;
width: 100%;
}
When the part’s width is beneath 48rem, I launched a horizontal Flexbox structure:
@container (max-width: 48rem) {
.content material {
align-items: middle;
show: flex;
flex-wrap: nowrap;
hole: 1.5rem;
scroll-snap-type: x necessary;
-webkit-overflow-scrolling: contact;
}
}
And since this structure relies on a container question, I used container question models (cqi) for the width of my versatile columns:
.content material > * {
flex: 0 0 85cqi;
min-width: 85cqi;
scroll-snap-align: begin;
}

Now, on small screens, the structure flows from picture to paragraphs to picture, with every ingredient snapping into place as somebody swipes sideways. This method rearranges parts and, in doing so, slows somebody’s studying pace by making every swipe an intentional motion.
To forestall my pictures from distorting when flexed, I utilized auto-height mixed with object-fit:
.content material img {
show: block;
flex-shrink: 0;
float: none;
top: auto;
max-width: 100%;
object-fit: include;
}
Earlier than calling on the Flexbox order property to position the second picture on the finish of my small display screen sequence:
.content material img:nth-of-type(2) {
order: 100;
}
Mini-spreads like this add motion and rhythm, however orientation provides one other approach to shift perspective with out scrolling. A easy rotation can turn into a cue for a completely new composition.
Make orientation-responsive layouts
When somebody rotates their telephone, that shift in orientation can turn into a cue for a brand new structure. As an alternative of stretching a single-column design wider, we will recompose it solely, making a panorama orientation really feel like a contemporary new unfold.

Turning a telephone sideways is a chance to recompose a structure, not simply reflow it. When Patty’s followers rotate their telephones to panorama, I don’t need the identical stacked structure to easily stretch wider. As an alternative, I need to use that extra width to offer a unique expertise. This may very well be as straightforward as including additional columns to a composition in a media question that’s utilized when the system’s orientation is detected in panorama:
@media (orientation: panorama) {
.content material {
show: grid;
grid-template-columns: 1fr 1fr;
}
}
For the long-form content material on Patty Meltt’s biography web page, textual content flows round a polygon clip-path positioned over a big fake background picture. This picture is inline, floated, and has its width set to 100%:
.content material > img {
float: left;
width: 100%;
max-width: 100%;
}
Then, I added shape-outside utilizing the polygon coordinates and added a shape-margin:
.content material > img {
shape-outside: polygon(...);
shape-margin: 1.5rem;
}
I solely need the textual content to circulate across the polygon and for the picture to seem within the background when a tool is held in panorama, so I wrapped that rule in a question which detects the display screen orientation:
@media (orientation: panorama) {
.content material > img {
float: left;
width: 100%;
max-width: 100%;
shape-outside: polygon(...);
shape-margin: 1.5rem;
}
}

These properties gained’t apply when the viewport is in portrait mode.
Design tales that adapt, not layouts that collapse
Small screens don’t make design harder; they make it extra deliberate, requiring designers to contemplate tips on how to protect a design’s character when house is proscribed.
Phillip was proper to ask how editorial-style design can work in a responsive setting. It does, however not by shrinking a print structure. It really works once we assume in a different way about how content material flexes, shifts, and scrolls, and when a design responds not simply to a tool, however to how somebody holds it.
The purpose isn’t to imitate miniature magazines on cell, however to seize their power, rhythm, and sense of discovery that print does so properly. Design is storytelling, and simply because there’s much less house to inform one, it shouldn’t imply it ought to make any much less affect.









