Basic rule of thumb for web development is that HTML should be your barebones structure, CSS should handle all visual aspects, element size and positioning, and Javascript should handle all front end user interaction like click effects, animating DOM elements, AJAX, etc.
CSS3 and HTML5...