News for hackers. Stuff that matters.
Re:Relearn CSS layout by thrower123 on Sunday June 16, 2019 @08:30PM (#20198841)
I don't think it ever made sense.

The biggest problem with CSS is that it is essentially global state, and you can get tricky action-at-a-distance effects that you never considered if you happen to wrrite some ids that something else is expecting to own and their selectors are poorly written. Or you can monkey-patch over it and break other things.

Tightly scoping things can make CSS workable, but requires discipline. And things that require discipline to do right don't scale well.

Re:Relearn CSS layout by karaokeyoga on Sunday June 16, 2019 @08:39PM (#20198879)
I agree. I have moved away from using IDs for CSS, though, as have a lot of other front-end developers. I use IDs strictly for JavaScript now. I was a happy user of IDs for CSS for probably twenty years but the transition away from that was largely painless and I don't feel like I lost anything along the way.