Ecommerce web host - Style Sheet andStyle ObjectsVersion 4 browsers from Microsoft

Style Sheet andStyle ObjectsVersion 4 browsers from Microsoft and Netscape were the first tooffer full-scale support for the concept of stylesheets. Stylesheetspromote a concept that makes excellent sense in the fast-paced, high- volume content creation environment that is today s World Wide Web: separating content from the rendering details of the content. Textualcontent may come from any number of electronic sources, but it mayneed to be dropped into different contexts just like an online newsfeed that becomes amalgamated into dozens of Web portal sites, eachwith its own look and feel. All the content cares about is the text andits meaning; the Web page designer then decides how that contentshould be rendered on the page. The concept has other advantages. Consider the large corporate Website that wants to promote its identity through a distinct style. A familyof stylesheets can dictate the font face, font size, the look of empha- sized text, and the margin width of all body text. To apply these styleson an element-by-element basis would not only be a tedious page- authoring task, it is fraught with peril. If the style is omitted from thetags of one page, the uniformity of the look is destroyed. Worse yet, ifthe corporate design changes to use a different font face, the task of changing every style in every tag even with a highly poweredsearch-and-replace operation is risky. But if a single externalstylesheet file dictates the styles, then the designer need make onlyone change in that one file to cause the new look to ripple throughthe entire Web site. Learning how to create and apply stylesheets is beyond the scope ofthis book, and this chapter assumes you already are familiar withstylesheet terminology, such as a stylesheet rule and a selector. Ifthese terms are not in your vocabulary, you can find numerous tutori- als on the subject both online and in books. Although IE, NN, and otherrecent browsers adhere fairly closely to W3C standards for stylesheets(called Cascading Style Sheets, or CSS for short), your first learningexperience should come from sources that focus on standards, ratherthan browser-specific features. Microsoft includes some extras in thestylesheet vocabulary that work only on IE4+ for Windows; Netscape7+ and other Mozilla-based browsers have specially named, prelimi- nary properties that offer future CSS3 capabilities in advance of thefinal standards. Unless you develop for a single target browser brandand client operating system, learning the common denominator ofstylesheet features is the right way to go. Details in this chaptercover all versions, so pay close attention to compatibility listings foreach item. 2626CHAPTER …In This ChapterManaging stylesheetsby scriptChanging element styleson the flyDistinguishing amongstyle, styleSheet, and style objects …
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Leave a Reply