I have spent many years slowly picking up tips and tricks for using CSS and although I’m not a very active web developer, I can usually achieve most of what I need with a few google searches.
This and other sites advocate Jquery as another technology to use, so recently I started an online tutorial, and it looks great. However, I’m becoming rather confused as to when to use JQuery and when to code CSS.
What is the best approach? When should I use CSS and when does Jquery do best?
Jquery is about function. Whilst you can use it for styling, you’re still really using it as a “function”, for example you might use Jquery for a menu. That may be a style thing but predominantly you’re doing it for function. CSS on the other hand is purely about styling the page.
I do believe however in the future it’s possible a language will be developed that does both jobs. Things like CSS3 transitions are already changing the way CSS is used.