The author shares a CSS Grid technique for capping a layout's width without max-width, by adding a flexible 'constraint column' defined with calc() — e.g., calc(100vw - 72rem) — which absorbs extra viewport space and prevents the main columns from growing beyond the target width. For centered layouts, the same approach can be mirrored on both sides using 50vw minus half the max width, with adjustments needed for gutters or grid-gap. This allows grid items to extend into the constraint column for full-bleed elements, treating the empty space around a design as a layout tool rather than defaulting to max-width.
Thought I’d share a little layout technique I’m using in this latest version of my site. It’s nothing earth-shattering, mind, but I haven’t seen it written up anywhere else, and I’ve found it pretty helpful. Maybe you’ll think so, too.
I’ll start here: most of the responsive layouts I’ve worked on have had a maximum width, a point beyond which the flexible layout stops scaling. And this site’s layout is no exception. Here’s a simplified version of how this new design started, when I first began prototyping:
It’s a Grid-powered layout with ten columns: eight columns in the middle, each sized with the fr unit. And the whole grid’s capped to an upper width of 72rem.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要The author reflects on the news of Sir Patrick Stewart's death, recalling how he grew up watching Star Trek with his father and how Jean-Luc Picard's quiet, empathetic leadership gradually won him over as he matured. He describes Picard's compassion and moral clarity as his first model of true leadership, and notes that his grief is entwined with nostalgia for the safe, happy hours spent watching the show as a child. Though he never met Stewart, the author says he will carry his gratitude for the actor with him.
AI 摘要The author expresses deep frustration with recommendation engines that relentlessly push more of whatever a user has just watched or listened to, filling feeds with predictable content like stadium concerts, sports highlights, and endless sleep-sound albums. They argue that despite enormous amounts of data, math, and capital, these systems merely deliver 'the content equivalent of beige, flavorless paste'—the most average, boring output possible. This realization, the author quips, suddenly makes the 'artificial intelligence' industry make a lot more sense.
AI 摘要After adding a disclosure statement about how 'artificial intelligence' is (or isn't) used on their newly redesigned website, the author discovered a broader tradition of similar 'AI statements' published by other designers, writers, and organizations. They compiled a selection of these statements, noting that they are ultimately less about AI itself and more about each author's values, their relationship to their work, and the tools they use. The featured statements range from complete refusal to sparing, selective use of AI, reflecting diverse views on ethics, craft, and authenticity.
AI 摘要In this journal entry, the author celebrates his 49th birthday in Boston after a week-long heat wave finally breaks, giving him a cool morning he treats as the perfect gift. After opening presents and hearing from friends and family, he goes for a slow, enjoyable run along the Charles River, pausing to take a selfie at the emergency room where he received a diagnosis years ago. The run prompts reflection on the decade he's closing—career changes, a book about labor in tech, old and new friends, loss and laughter—and on his partner, who has been with him throughout it all.
AI 摘要The author describes a redesign of his personal website, launched quietly after 15 months, aimed at simplifying layouts and adding warmth through warmer colors, new typography, and a calmer, single-column reading experience. He reflects on the self-doubt he faced during the unglamorous finishing work, including a novel worry that his design might resemble the emerging aesthetic of LLM-generated websites. After taking some space following the launch, he has reconnected with the parts of the design he first loved and is happy with the result, feeling a bit like coming home.