• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Style Sheets > Using Multiple Approaches

Using Multiple Approaches

You aren't limited to using only one of the described style sheet approaches. You can use all three simultaneously if needed. One case in which you might want to do this is on an intranet site where you have the following:

  • Global styles— Certain styles used on every page are best stored in a single style sheet file and linked to each page with the <link /> element. This might apply to styles mandated as a corporate standard, such as the use of a plain white background and a single typeface.

  • Subsection styles— Intranet sites typically have many subdivisions, each with its own look and feel. To support a subdivision's look, you can store styles within the <STYLE> element in the head of each document in the subdivision. The subdivisions might represent different business units within the corporation, or it can just be a set of related documents, such as product specs or white papers.

  • Page-specific styles— If you need to make a small deviation from your chosen global or subsection styles, you can use an inline style to make the change where you want it. You might use a page-specific style if a page in one of your subdivisions has particular presentation requirements. A key passage in a white paper, for example, might be highlighted by rendering it in bold and in color.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint