When someone tells me it's easier with JavaScript...


View this email in your browser (or share it with a friend!)

Hello Reader,

From my experience, there are a few reasons people push back on new things, but the most common one I see revolves around people preferring the old way of doing things.

This makes sense, because they are comfortable with what they are used to, rather than the new way, which is different. When something new comes along, that means they have to learn it, which for a lot of people means that it’s slower.

The thing is, in web development, most new things make things easier, and once you get used to them, often much faster as well.

The reason I mention this at all is that I put out a video this week showing how to create popovers without any JavaScript, including a nice little fade-in and slide-in/out effect.

video preview

If there were any pushback to this, you’d think it would be about browser support (which isn’t bad!), but instead, one of the first comments on the video was that it would be faster and easier to do it with JavaScript.

Anyway, that comment triggered me a little, so I made a Short to prove them wrong 😅.

video preview

If you’re going to say it’s faster or easier with something, at least say it’s with AI these days 😆 (and even then, I don't know if writing the prompt and then waiting for it would be under 2 minutes?).

📝 Quiz time!

You have a block element with padding on it. It has a width: 100%, and margin: 1rem as well. It's currently overflowing its parent element. You add box-sizing: border-box but it is still overflowing. Why?

  1. box-sizing only applies to elements with a declared height
  2. margin is added outside the border box, so it isn’t included in the 100%
  3. There is padding on the parent, which is included in the 100% of the child
  4. width: 100% resolves against the viewport, not the parent

As per usual, you'll have to head on over to YouTube to take a stab at the quiz, and once you answer, you'll see if you were right or not.

🏁

With summer in full swing and the kids home, the newsletter might be slightly shorter than usual, with some of the regular sections missing. We’ll see how it goes from week to week, though 🙂.

Have a fantastic week!
Kevin


Are you looking to step up your CSS? I've got both free and premium courses to help with that! They cover a range of skill levels too 👇

Beginner friendly (and free)

HTML & CSS for Absolute Beginners

A free course that starts with the absolute basics, and gets to creating some layouts with Flexbox and Grid.

Enroll →

Intermediate

CSS Demystified

For those who've been writing CSS for a little bit now, but want to step up their game and start writing CSS with confidence!

Enroll →

Intermediate (Frontend Masters)

Build a Modern Site from Scratch

Build a fully responsive site using modern CSS features, along with some polished animations.

Enroll → (25% off first month of Frontend Masters if you use this affiliate link)

If you no longer want to get any emails from me, you can unsubscribe or you can edit your preferences if you'd like pick which emails you get from me.
600 1st Ave, Ste 330 PMB 92768, Seattle, WA 98104-2246

Hi! I'm Kevin

Weekly newsletter, where I talk about tangentially-related front-end development topics and share what I've been up to in the last week, plus any cool/fun/interesting/useful links I come across as well.

Read more from Hi! I'm Kevin

View this email in your browser (or share it with a friend!) Hello Reader, I’ve started collecting answers for a Family Feud style game called Asked 100 Devs (more on this at the very end of the email), and one of the questions I asked was “What is your favorite color format in CSS?” I don’t want to spoil the results yet (I’ll be having some contestants on soon to try and guess the top answers to the questions), but something that caught me by surprise was that, of the answers for rgb, 80% of...

View this email in your browser (or share it with a friend!) Hello Reader, Trying something a little different this week with some quick hits before we dive into the main content. The 2026 edition of the State of Dev’s survey is now open. As with all of the State of surveys (or well, any survery for that matter), the more people who take it, the more representative it is. As I let you know earlier this week, I’ll be speaking at ZurichJS in September. If you are in the area and can’t make it,...

Hello Reader, An off-schedule email this week, as I completely forgot to send my regular newsletter on Sunday, and I had wanted to share something that's time-sensitive. I've mentioned this a few times now, but I'll be speaking at Zurich JS Conf on September 11th (along with others like Scott Tolinski, Daniel Roe, Tajas Kumar, and many others), and the ticket price is going up in 3 days. I'll be having some fun talking about how we can now use CSS for a lot of things we'd traditionally used...