"Stylin' with CSS: A Designer's Guide 2nd Edition"
If you create a second style sheet for printing, its link tag might look like this rel="stylesheet" type="text/css" /> So now that you know what style sheets are, let??™s look at how you write style sheet rules, and how concepts like Inheritance, Speci?¬? city, and the Cascade control how these rules affect your markup. Don??™t use spaces in ?¬? le names. They end up being replaced by the %20 string, which really obfuscates your ?¬? le names for the user. I use underscores instead of spaces??”then the whole ?¬? le name string is one long word to the browser and can easily be selected by clicking it. STYLIN??™ WITH CSS - CHAPTER 2 32 What Are Cascading Style Sheets? Let??™s split the question in two: What are style sheets? and How do they cascade? I??™ll answer the ?¬? rst question now, and although I??™ve hinted at the answer above, I??™ll talk about the cascade later in the chapter. A style sheet is simply a text ?¬? le with the ?¬? le name extension .css. A style sheet is a list of CSS rules. Each rule de?¬? nes a particular style that is applied to your XHTML markup; a rule can de?¬? ne the font size of the text of paragraphs, the thickness of a border around an image, the position of a headline, the color of a background, and so on. Many of the sophisticated typography and layout features of print-design programs, such as Adobe InDesign, can now be emulated in Web pages with CSS.