News for hackers. Stuff that matters.
Re:Web page annoyances that I don't inflict on you here by kerkeslager on Tuesday January 07, 2025 @09:26AM (#42622628)
> (2) Make it CSS-only; if you have to use custom JS to achieve a certain effect, be ready to spend a LOT of time to get the details right, or it'll feel janky.

I have built a handful of personal sites at this point with no JS, and it's really amazing what modern CSS can do. My favorite trick is using tabindex=0 and :focus-within to make dropdowns (using :focus doesn't handle submenus).

There are no comments on this comment yet.