Computing primes with CSS
I’ve been working on a redesign of this site, so doing more CSS, finally internalizing Sass, etc. During my reading, the nth-child pseudo-class caught my eye.
Ned Batchelder's personal web site, blog, writings, software, math, parenting, autism
Visit nedbatchelder.com → RSS feedOn Hacker News Aug 2009 – Sep 2025
Software Engineering 10Life, Learning & Writing 3Web & Frontend 2Math & Algorithms 2Tools & Productivity 1Society, Policy & Culture 1
I’ve been working on a redesign of this site, so doing more CSS, finally internalizing Sass, etc. During my reading, the nth-child pseudo-class caught my eye.
When building a web site with HTTPS pages, one of the annoying tasks is to ensure that those pages make no references to HTTP resources. If they do, then Internet Explorer will pop up alarming messages about mixing secure and insecure content, and do you want to display the insecure content.