It’s through CSS that we can define the appearance of page elements without having to rely on external applications, plug-ins, or excessive use of images. It’s also through CSS and stylesheets that we can separate the presentation of page elements from their organization.
This chapter assumes that you’re familiar with CSS and how to add stylesheets to a web page. If you’re unfamiliar with CSS, you may want to read a good tutorial or book on CSS before reading the rest of this chapter. I recommend Eric A. Meyer’s CSS: The Definitive Guide (O’Reilly).
Typically, you retrieve and set CSS style properties via the
style property. The concept of
style as a property originated with
Microsoft, but the World Wide Web Consortium (W3C) adopted and included it in the DOM Level 2 CSS module. ...