Cascading Style Sheets (CSS) separate the presentation of a web site from its content. Their use helps to easily maintain a "common look and feel" of the web site, and to increase the accessibility of its web pages. A further benefit is that their use helps to pave the way for Content Management.
The CSS sub-group was established by the Web Operational Management Group to research and recommend on implementing CSS on the Library's web site. The current scope of the project does not include the Library Staff Web site. The following are our considerations and resulting recommendations.
To maximize the benefit of using CSS --
In order to test CSS, templates, symbolic links, server side includes (SSI), etc., in a safe environment, a test site was set up at /libweb/htdocs2/ and accessible at: http://www.libtest.uwaterloo.ca/. This proved to be very helpful. The discipline pages provided a good testing base, because their complexity covered most of the situations we would have to consider in choosing a plan to implement CSS for the Library Web.
The group aims to create an environment that supports easy, efficient maintenance and global changes. We evaluated the combined use of Dreamweaver Templates, Server-side include statements, and CSS. After looking at several combinations, the group recommends the following structure, as illustrated by the medieval discipline area:
This structure provides:
For security reasons, we prefer that web maintainers define their Dreamweaver sites to connect to the specific directory they are maintaining. This creates problems with sharing CSS and Dreamweaver Template files as outlined above. To circumvent this problem we experimented with the use of Symbolic links and Hard links and found that they can be successfully used throughout the site. We recommend the use of "Hard Links" because they provided the most seamless system for the web maintainer.
The medieval pages also show an easy-to-maintain CSS-based navigation bar using CSS for both positioning and text. Javascript is used to fix browser compatibility problems.
This navigation bar requires two SSI's -- one for the head, and one for the body. The Library web pages will need to be updated on a directory-by-directory basis, using Dreamweaver. Some pages may need further adjustments for the CSS-based navbar to work, e.g., UMD pages.
Since the Library Web is produced by staff members throughout the Library, conflicts between javascripts and anchors sometimes occur. To prevent this kind of conflict from occurring and to allow site-wide sharing of CSS files, we recommend the use of naming conventions.
Dreamweaver templates, CSSs and SSIs were set up on the Library test site as discussed above. The group members tested the procedures on 1) creation of discipline sites and 2) maintenance of discipline web pages.
It was considered that the templates and CSSs, in a folder accessible only by expert staff, were secure but could be applied easily by maintainers of individual web sites.
An implementation plan has been developed to show the steps required to convert the Library Web to a CSS-based site.
Marian Davies, Esther Millar (Facilitator), Bill Oldfield, David Smith, Marina Wan, Charles Woods.