The article introduces text-box, a new CSS property that trims unwanted space around text, eliminating the need for hacks like negative margins to align headings with images or text within buttons. The author is excited about its potential, even suggesting it could become part of future CSS resets, though finds the underlying text-box-trim and text-box-edge properties confusing and plans to stick with the simpler shorthand. Additional examples and walkthroughs are available from Jason Bradberry and Jan Nicklas.
I’m real excited about text-box, a new CSS property that helps with text alignment and layout. You might remember whispers about leading-trim from a few years back and this new syntax has replaced all that.
I first spotted this bad boy on the Webkit blog the other day:
This will trim the space above headings so that we no longer have to do any weird margin-top: -3px shenanigans to align some text with an image. Over on Piccalilli, Jason Bradberry has an in-depth walkthrough of text boxes on the web where he shows how handy this property might be in the case of buttons, too.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要The article discusses Katherine Rundell's essay on why adults should read children's books, highlighting her quotation of Frances Spufford about the inherent power and danger of storytelling. Rundell argues that real fairytales are driven by hunger, contrasting the original Cinderella with Disney's passive version that lacks agency. The author connects this to their own childhood experience of devouring Animorphs books, noting they are still chasing that same fierce, transformative hunger for stories nearly thirty years later.
AI 摘要After receiving a box of embarrassing journals from his early twenties, the author finds a gentler perspective through Roland Allen's 'The Notebook: A History of Thinking on Paper,' which shows that recording quotes, sketches, and musings is part of an ancient tradition, exemplified by Dutch students' album amicorum in 1575. He realizes that journaling—and even blogging—is a centuries-old practice of curiosity and self-improvement practiced by sailors, da Vinci, and Venetian merchants alike. Ultimately, he concludes that people across the ages are fundamentally the same, all eager to record and share the things they love, 'Fight Club' included.
AI 摘要The article is an enthusiastic, spoiler-free recommendation of Claire Keegan's novella 'Small things like these', praising its sweet, triumphant, and satisfying ending that will stay with the reader. The author describes Keegan's writing as clear and precise, and quotes her explaining that she aims to work on the level of suggestion by removing traces of her labours and trusting the reader's intelligence.
AI 摘要The article reflects on Italo Calvino's 1967 lecture 'Cybernetics and Ghosts,' in which Calvino envisioned machines capable of writing poetry and novels and found comfort in the idea of literature being reduced to finite, systematic operations. The author admits to bristling at this reduction of the mysterious craft of novel-making and feeling a need to defend the humanities. Ultimately, however, Calvino offers a hopeful twist: machines could expose literature's rules so that writers can see them clearly, break them, and create something entirely new.
AI 摘要At SFO, the author encounters an exhibit called Indoor Eden: Victorian Jardinières, featuring an 1870 quote from Shirley Hibberd's gardening book urging readers not to despise 'the day of small things.' Though impressed by the craftsmanship of the Victorian art nouveau pottery, the author humorously vents about how profoundly ugly the pieces are, arguing that effort doesn't make something good. They conclude by jokingly rejecting Hibberd's gentle advice about making small improvements, grumpily insisting that small, ugly things should be unacceptable and fixed with dramatic, life-changing overhauls instead.