Chapter 5. Using Cascading Style Sheets

IN THIS CHAPTER

CSS Syntax 52

Linking Style Sheets 57

Embedding Style Sheets 58

Inline Styles 59

Cascading Order 59

Inheritance 60

Box Model 60

Summary 61

Sample Questions 62

Cascading style sheets (CSS) represent a revolution still in the making in Web development. Many sites now use CSS, although few use style sheets as extensively as they probably should.

A good portion of CSS1, the first CSS specification approved by the W3C, is supported by all browsers (version 4.0 and later) in use (Internet Explorer and Opera support some of CSS1 in 3.x versions). CSS positioning, part of CSS2, is also supported in 4.0 and later browsers.

What CSS provides is a way of separating display rule specifications (how ...

Get Macromedia Dreamweaver8 Certified Developer Study Guide 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.