- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Can we use CSS to manage functionality? Like, if we donot want to use JS or JQuery in our code, can we do that using CSS?
Only in very limited ways….CSS cannot come close to doing the vast array of things that can be done using JS.
Even something seemingly as simple as a click can only be replicated in a very narrow set of circumstances.
> Can we use CSS to manage functionality? Like, if we donot want to use JS or JQuery in our code, can we do that using CSS?
Short answer: no. You can’t and you shouldn’t.
> Short answer: no. You can’t and you shouldn’t.
Short answer is that you can’t. Not you shouldn’t. If css has capabilities like js, most people will prefer css to js any day, anytime.
> Short answer is that you can’t. Not you shouldn’t. If css has capabilities like js, most people will prefer css to js any day, anytime.
There is no need for CSS to have JS capabilities. Two languages, two purposes.
Longer answer: You can and should…but in limited circumstances and for a small number or purposes.
Animations / Transitions etc. have recently been included in CSS which were once the purview of Flash or Javascript.
The real question is ” What do you mean by ‘functionality’ ” ?