CHAPTER 3
CSS Primer
Cascading Style Sheets (CSS) are the means by which you control the appearance (more properly known as presentation) of HTML elements. CSS has a special significance for jQuery for two reasons. The first is that you can use CSS selectors (which I describe in this chapter) to tell jQuery how to find elements in an HTML document. The second reason is that one of the most common tasks that jQuery is used for is to change the CSS styles that are applied to elements.
There are more than 130 CSS properties, each of which controls an aspect of an element’s presentation. As with the HTML elements, there are too many CSS properties ...
Get Pro jQuery 2.0, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.