The Endless Possibilities Of The Css Properties-punyu

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