Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Functionality vs Style

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #45713

    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?

    #139653
    Paulie_D
    Member

    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.

    #139696
    Kitty Giraudel
    Participant

    > 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.

    #139702
    CodeGraphics
    Participant

    > 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.

    #139703
    Kitty Giraudel
    Participant

    > 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.

    #139706
    Paulie_D
    Member

    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’ ” ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.