News for hackers. Stuff that matters.
Re:CSS is powerful, you can do a lot of things without JS by praveenweb on Tuesday July 05, 2016 @07:24AM (#12035641)
"The problem is CSS has a global scope". CSS can be written in a way that it affects only specific parts of the site/app. "you change one thing and breaks the whole site's layout". There are use-cases when you want changes to reflect across the entire site and CSS can be easily used to achieve it. (Ex: changing color of buttons). Javascript can also break the whole site's layout. It just depends on what code we write.

There are no comments on this comment yet.