CSS is powerful, you can do a lot of things without JS
101–110 of 319 posts
Re: CSS is powerful, you can do a lot of things without JS
#102Is it possible to display a "There are no records" message if a container is empty (i.e. tbody) using CSS only?
.container:empty:before {
content: 'There are no Messages'
}Re: CSS is powerful, you can do a lot of things without JS
#103Re: CSS is powerful, you can do a lot of things without JS
#104Re: CSS is powerful, you can do a lot of things without JS
#105Earlier quoted context omitted.
CSS ( properly written ) is easier to debug than JS.
Easier to find the bug harder to fix I think. The problem is CSS has a global scope - you change one thing and breaks the whole site's layout. With javascript usually code affects more specific areas of the site/web app.
This means you I'm able to retrofit old sites with new code with zero fear that the code I'm adding can affect anything else previously on the site :) It's also handy when building new stuff too.
Re: CSS is powerful, you can do a lot of things without JS
#106Most of these are just clever CSS hacks. There is a website collecting these kind of experiments since the early '00: http://www.cssplay.co.uk/ There was a time when separation of concerns and the "Rule of Least Power"[0] where the foundation principles of web development. Today you have preprocessors, postprocessors, transpilers, content and style in JavaScript, behavior in CSS. Very powerful tools that can easily l…
The W3C's job is to standardize implementations. Most standards bodies do not invent on their own. In any case, a standards body will generate the fundamentals allowing the ability to piece together components to create what a developer wants. No standards body is able to come up with every desire of every developer.
No rules = Anarchy.
Re: CSS is powerful, you can do a lot of things without JS
#107I am missing one important argument in this discussion: CSS only design is an important piece of a future web with reduced security and privacy threads. The (interesting) model of allowing remote code execution per default was a beautiful, but naive vision. We have to make big advances in technology, politics and society to make this model work in a way that does not make internet users victims by default. We are not…
What do you exactly mean with "remote-execution-by-default"? As far as I know, all browsers have strict "same-origin" policies by default.
Even with the same-origin policy, the default behaviour of a web browser is to execute code it downloads from a remote site (i.e., remote to your computer); as it turns out, this is an utter disaster for security and privacy, turning what is a relatively securable platform (HTML+CSS) into a nightmare.
It is not, today, possible to be secure and private while allowing JavaScript. That's a problem.
Re: CSS is powerful, you can do a lot of things without JS
#108Re: CSS is powerful, you can do a lot of things without JS
#109Earlier quoted context omitted.
Hmmm... .accordion .content { padding:0 10px; overflow:hidden; border:1px solid #fff; -webkit-transition: all .5s ease-out; -moz-transition: all .5s ease-out; } -webkit-transition, -moz-transition... it's like we're at 180 degrees to where the web was in the days of IE4-6
Remember when Good Developers would hate on framesets because they break the back button and linking and everything? Now it's totally OK to break all that with AJAX and "text-as-apps"... I much prefer the days of the old web.
Re: CSS is powerful, you can do a lot of things without JS
#110And here I am, trying for past 10 years to centre align a div, both horizontally and vertically.