<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj" -->

---
title: Use these CSS features instead of JavaScript | daily.dev
description: 👉 Start writing CSS with confidence: https://thecascade.dev/courses/css-demystified/?utm_source=youtube&utm_medium=social&utm_campaign=regular-video  🔗...
canonical: https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Use these CSS features instead of JavaScript | daily.dev
og:description: 👉 Start writing CSS with confidence: https://thecascade.dev/courses/css-demystified/?utm_source=youtube&utm_medium=social&utm_campaign=regular-video  🔗...
og:url: https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj
og:image: https://api.daily.dev/og/posts/XLEbdjXrJ.png
og:image:alt: Use these CSS features instead of JavaScript
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Use these CSS features instead of JavaScript

**[Kevin Powell](https://daily.dev/sources/kevinpowell)** · 10 min read · 27 upvotes · 0 comments

## Summary

👉 Start writing CSS with confidence: https://thecascade.dev/courses/css-demystified/?utm_source=youtube&utm_medium=social&utm_campaign=regular-video

🔗 Links
✅ Custom form messages: https://youtu.be/h5qqmE83Tes

✉ Keep up to date with everything I'm up to  https://www.kevinpowell.co/newsletter
💬 Come hang out with other devs in my Discord Community https://discord.gg/nTYCvrK
⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: https://learn.kevinpowell.co
🎓 Start writing CSS with confidence with CSS Demystified: https://cssdemystified.com
🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/

---

Help support my channel
👨‍🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@kevinpowell/join

---

🧑‍💻 My editors:
In most videos, I’m using CodePen these days: https://codepen.io/ - with High Contrast Dark theme and the font Commit Mono
And if not CodePen, then I’m probably using Zed: https://zed.dev/ with the theme Ayu Dark, and the font ZedMono
In older videos, I was using VS Code - https://code.visualstudio.com/ with the theme One Dark Pro Var, and the font Cascadia

---

⌚ Timestamps:
00:00 - Only looking at things with good browser support
00:25 - :target (with scroll-behavior: smooth)
01:55 - scroll snapping
03:25 - :user-valid and :user-invalid
06:45 - :focus-visible
07:50 - the lh unit
09:00 - field-sizing

link to customizing error messages

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:

Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

#css

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=qu1jE41O_8o>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#frontend](https://daily.dev/tags/frontend), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Use these CSS features instead of JavaScript","url":"https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj"},"datePublished":"2026-09-23T13:16:40.393Z","dateModified":"2026-09-23T15:03:50.235Z","description":"👉 Start writing CSS with confidence: https://thecascade.dev/courses/css-demystified/?utm_source=youtube\u0026utm_medium=social\u0026utm_campaign=regular-video\n\n🔗...","image":"https://i.ytimg.com/vi/qu1jE41O_8o/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/qu1jE41O_8o/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Kevin Powell","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Kevin Powell","logo":"https://media.daily.dev/image/upload/s--XK5Rf0kM--/f_auto/v1717745137/logos/kevinpowell","url":"https://daily.dev/sources/kevinpowell"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/use-these-css-features-instead-of-javascript-xlebdjxrj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":27},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,css,frontend,html","timeRequired":"PT10M","video":{"@type":"VideoObject","name":"Use these CSS features instead of JavaScript","description":"👉 Start writing CSS with confidence: https://thecascade.dev/courses/css-demystified/?utm_source=youtube\u0026utm_medium=social\u0026utm_campaign=regular-video\n\n🔗...","thumbnailUrl":"https://i.ytimg.com/vi/qu1jE41O_8o/sddefault.jpg","uploadDate":"2026-09-23T13:16:40.393Z","duration":"PT10M","url":"https://api.daily.dev/r/XLEbdjXrJ","embedUrl":"https://www.youtube.com/embed/qu1jE41O_8o"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kevin Powell","item":"https://daily.dev/sources/kevinpowell"},{"@type":"ListItem","position":3,"name":"Use these CSS features instead of JavaScript"}]}
```

