Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
| ||
Linked style sheets are one of the more powerful features of cascading style sheets. They provide the ability to create one style sheet that affects multiple pages. If you design your pages to take maximum advantage of this feature, you can change the entire look and feel of your site by modifying just one file. To use a linked style sheet in your Web page, do the following two things:
To illustrate how linked style sheets work, I've created a Web page (a recipe of mine for Escargot) and added some VBScript code to it that determines the correct style sheet to use (out of five possiblities) at load time. At the top of the page, a series of links enables you to select each style sheet in turn. Note that each link points to the same page (escargotmafacon.htm), and loads a different style sheet. For example, the style sheet for selection #1 is an empty file, which represents how this page looks when rendered by a non-CSS-aware browser. You can jump straight into the page and bring up a random style sheet or you can select one of the images below to display the page with that style sheet.
Further Reading:
Did you find this article useful? Gripes? Compliments? Suggestions for other articles? Write us! © 1998 Microsoft Corporation. All rights reserved. Terms of use.
Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site
|