🎲 Easier striped tables with the 'of [selector]' syntax

· Indieblog · Aug. 15, 2026, 10:06 p.m.
Summary
This blog post discusses the CSS feature 'of [selector]' which simplifies the process of maintaining alternating row colors in tables, even when some rows are hidden. This enhancement alleviates the common issue faced by developers when using the ':nth-child()' pseudo-class for zebra-striped tables.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →