Comment

Comment by NiagaraThistle

Do developers really build basic websites / pages WITHOUT pure CSS when it's an option?

I know there are times when you need to do something CSS can't (and shouldn't do of course. But I mean when the 'thing' is design/style only, aren't we all already using only CSS for those things? Or am I just so old I still practice the separation of concerns and no one else is.

Also, while kudos to the OP for doing this, this is exactly a time when using CSS to do this is incorrect and using vanilla Javascript IS the right decision, as this is a behavior and not a style issue.

NB4: Yes I do code sloppy when time dictates, but I still seperate my HTML, CSS, and JS as the norm, not the exception.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton