All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Advanced CSS Techniques: Exploring the Infinity Keyword with Text Properties

By

roosgit

9mo ago· 7 min readen

Summary

This article continues the author's exploration of creative and unconventional uses of the CSS `infinity` keyword, building on previous work with font sizes and line heights. The author experiments with applying `infinity` to various text properties like text-indent, word-spacing, and letter-spacing, demonstrating how this CSS keyword can produce unexpected and sometimes useful visual effects in web design.

Key quotes

· 4 pulled
Previously on meyerweb, I explored ways to do strange things with the infinity keyword in CSS calculation functions.
When last we met, I'd just finished up messing with font sizes and line heights, and that made me think about other text properties that accept lengths.
You know, like these: div:nth-of-type(1) {text-indent: calc(infini
More explorations of ways to abuse the CSS infinity keyword, this time with more than just lengths.
Snippet from the RSS feed
More explorations of ways to abuse the CSS `infinity` keyword, this time with more than just lengths.

You might also wanna read