Head and shoulders photo of Ben Frain

Hi! I'm Ben Frain

A web developer and author. I write web development books, make online courses, and publish YouTube videos.

Book
Book cover of Responsive Web Design with HTML5 and CSS, Fourth Edition

Learn how to build modern, responsive websites.

Major updates in the latest, 4th Edition – container queries, cascade layers, subgrid and more.

Learn More...

Video Course
Ultimate Text Editing Productivity with Sublime Text
This course is excellent. Ben did a great job of explaining the various functionalities of Sublime

Jovan Nikolic, Skillshare

Recent Posts

Center items in a container, and make then left aligned when they overflow

I wanted a number of items, centered horizontally in a container, and when there are too many items to fit, the items should overflow the container, from left to right (first item flush with the left hand side of the…

A single element CSS donut timer/countdown timer, that can sit on any background

During last year, I championed how you can use rounded gradient borders with any background. This approach has solved a great many UI challenges for me. Today, I want to document how it can solve another. What if you want…