| When you look at Web pages from large commercial | | | | CSS details. |
| sites, you see a variety of typefaces, type | | | | Another way that you can work with CSS is to |
| treatments, and even line-spacing variations.So how | | | | create a completely separate document on your |
| do the Web site creators accomplish those effects? | | | | Web server that includes all the styles you want to |
| They use a new and vastly improved addition to | | | | use. You can then reference that documentwithin all |
| Web page design called style sheets. You might be | | | | the Web pages on your site. You may think that |
| familiar with the concept of style sheets from | | | | having a single style definition at the top of your |
| working with document-processing applications like | | | | page makes it easy to manage the layout of that |
| Microsoft Word, where choosing a particular style | | | | page. Imagine how handy it would be to have a site |
| produces a complex set of changes in typeface, | | | | with dozens (or hundreds!) of pages of material, all |
| color, size, indentation, and much more. | | | | using theappropriate div and span tags and classes. |
| Style sheets give you a corresponding capability as | | | | Add to that the capability to change the style across |
| you design Web pages.One very important | | | | all occurrences of a class, on all pages, with a single |
| characteristic of style specifications, both in | | | | edit! |
| applications,such as Microsoft Word, and in Web | | | | The impact of Css upon the way developers build |
| documents, is that attributes are inherited.Suppose | | | | web sites has been immense, and the possibilities |
| that a paragraph in your document appears in | | | | they bring are endless. Removing most or all of the |
| 14-point Times Roman. | | | | presentational information from an XHTML file and |
| Then you apply a style to a single word in the | | | | placing it in a style sheet has many advantages, |
| paragraph that puts the selected word in blue.Besides | | | | including reducing download size and time and huge |
| having the blue added, that word also inherits the | | | | bandwith saving. |
| typeface, typeface size, and any other attributes | | | | One key aspect of css design is the use of divisions |
| from the parent style applied to the remainder of the | | | | to provide greater flexibility and mark out the regions |
| paragraph. In Web parlance,this is known as | | | | of our pages.Infact the element are XHTML elements |
| cascading (style attributes cascade down until | | | | used to define areas of a documents in which you |
| something changes them). The style sheets Ill be | | | | can apply a style. |
| talking about are, therefore, logically called Cascading | | | | Taking control of your text requires more than just |
| Style Sheets and succinctly referred to as CSS. | | | | specifying one of the many available web fonts or |
| Because although CSS is wonderful for many things, | | | | setting font size. Css provides the conscentious |
| it frankly requires too much work when you want to | | | | designer with a multitude of tools that can be applied |
| make just one or two simple, straightforward | | | | to the text, bridging the gap between print and web |
| changes. If I want a word in bold onmy page, its | | | | design and allowing for much flexibility. |
| usually much simpler to specify than to figure out the | | | | |