« * K @markodenic.com

Marko Denic @markodenic.com

2026-11-15 14:13 UTC

CSS tip: stop showing form errors before the user has typed anything. input:user-invalid { border-color: red; } :invalid turns fields red the moment the page loads. :user-invalid waits until the user has actually interacted with the field. Works in all major browsers.

9 likes, 0 reposts, 1 replies

3 Next post4 More from @markodenic.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup